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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.94MB] [CPU: ▼37.41ms] Passed 4 tests
An overview of server-side resources used by Statistics Website
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.51 ▼11.60 |
Dashboard /wp-admin | 3.00 ▼0.30 | 22.73 ▼31.75 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 22.78 ▼30.38 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 25.23 ▼69.57 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 20.49 ▼17.92 |
Statistics Website /wp-admin/options-general.php?page=statistics | 3.00 | 20.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
ID_website |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
ID_user |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Statistics Website
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲74 | 14.78 ▲0.41 | 2.29 ▲0.01 | 40.53 ▼3.31 |
Dashboard /wp-admin | 2,207 ▲19 | 4.85 ▼0.03 | 97.22 ▼22.34 | 40.54 ▼7.80 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.03 | 36.98 ▼3.12 | 34.85 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.19 ▲0.22 | 607.60 ▼18.56 | 48.70 ▼11.23 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.16 ▼0.15 | 96.17 ▼7.81 | 41.20 ▼2.36 |
Statistics Website /wp-admin/options-general.php?page=statistics | 850 | 2.03 | 25.07 | 26.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin did not uninstall successfully, leaving 8 options in the database
- ID_user
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- ID_website
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=statistics
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/statistics-website/statistics-website.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/statistics-website/options.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% 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
9 plugin tags: visit, referrers, count, google, real time...
statistics-website/statistics-website.php 92% from 13 tests
The primary PHP file in "Statistics Website" version 1.01 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 417 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin78 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 8 | 9 | 78 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected