Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.43ms] Passed 4 tests
A check of server-side resources used by API Stats
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 32.44 ▼10.62 |
Dashboard /wp-admin | 3.36 ▲0.05 | 41.50 ▼14.32 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.59 ▲6.38 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.94 ▲0.84 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.91 ▲10.84 |
API Stats /wp-admin/tools.php?page=api-stats | 3.34 | 49.72 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_sg_api_stats_events |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
sg_api_stats_db_version |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for API Stats
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.35 ▼0.36 | 1.78 ▲0.08 | 35.68 ▼7.64 |
Dashboard /wp-admin | 2,199 ▲27 | 5.63 ▲0.06 | 92.22 ▼17.00 | 37.98 ▼8.15 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.96 ▼0.18 | 38.96 ▲2.69 | 35.44 ▲1.65 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.40 ▲0.64 | 672.02 ▲82.83 | 55.79 ▼0.07 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▲0.01 | 94.56 ▼2.99 | 40.80 ▲1.30 |
API Stats /wp-admin/tools.php?page=api-stats | 854 | 2.12 | 209.86 | 28.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_sg_api_stats_events
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- sg_api_stats_db_version
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/tools.php?page=api-stats
- > Rendering (warning) in unknown
/wp-admin/tools.php?page=api-stats 165 The specified value "2023-11-26 23:59:59" does not conform to the required format, "yyyy-MM-dd".
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: api rest-api statistics stats
wp-api-stats/wp-api-stats.php 85% from 13 tests
"API Stats" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin422 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 86 | 39 | 331 |
JavaScript | 2 | 0 | 6 | 62 |
CSS | 2 | 3 | 0 | 15 |
Sass | 1 | 3 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin