Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-ranking-pro/wp-ranking-pro.php+83
Function create_function() is deprecated
Server metrics [RAM: ▼1.38MB] [CPU: ▼54.91ms] Passed 4 tests
An overview of server-side resources used by WP-Ranking PRO
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.62 ▼0.84 | 8.66 ▼31.83 |
Dashboard /wp-admin | 2.64 ▼0.71 | 10.74 ▼64.44 |
Posts /wp-admin/edit.php | 2.64 ▼0.72 | 9.83 ▼42.53 |
Add New Post /wp-admin/post-new.php | 2.64 ▼3.25 | 9.15 ▼80.85 |
Media Library /wp-admin/upload.php | 2.64 ▼0.59 | 10.69 ▼26.63 |
WP-Ranking PRO /wp-admin/tools.php?page=wp-ranking-pro | 2.65 | 10.42 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 4 new tables, 10 new options
New tables |
---|
wp_wpr_views |
wp_wpr_ranking |
wp_wpr_views_per_day |
wp_wpr_http_user_agents |
New WordPress options |
---|
theysaidso_admin_options |
wpr_db_version |
widget_wpr_widget |
wpr_exclusion_http_user_agent |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
wpr_as_mobile_http_user_agent |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP-Ranking PRO
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲223 | 13.30 ▼1.00 | 1.69 ▼0.04 | 31.37 ▼12.21 |
Dashboard /wp-admin | 2,369 ▲184 | 4.89 ▼0.92 | 111.45 ▲1.48 | 42.50 ▲4.30 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.06 ▲0.01 | 40.80 ▼0.30 | 34.89 ▼1.88 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.66 ▼5.67 | 677.18 ▼3.74 | 54.00 ▼5.19 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.03 | 106.65 ▼2.95 | 46.11 ▼3.30 |
WP-Ranking PRO /wp-admin/tools.php?page=wp-ranking-pro | 943 | 1.71 | 27.28 | 42.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-ranking-pro/wp-ranking-pro.php+83
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_wpr_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=wp-ranking-pro
- > Deprecated in wp-content/plugins/wp-ranking-pro/wp-ranking-pro.php+83
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-ranking-pro/wp-ranking-pro.php on line 1845
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-ranking-pro/templates/help-samples.php:1
- > PHP Notice
Undefined variable: current_ranking in wp-content/plugins/wp-ranking-pro/templates/dashboard-table.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-ranking-pro/templates/ranking-1.php:3
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/wp-ranking-pro/lib/template-engine.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-ranking-pro/lib/model/ranking.php on line 3
- > PHP Notice
Undefined variable: current_ranking in wp-content/plugins/wp-ranking-pro/templates/dashboard-table.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-ranking-pro/templates/dashboard-table-default.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-ranking-pro/templates/ranking-1-inner.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-ranking-pro/templates/help-parameters.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/wp-ranking-pro/templates/main-custom.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: posts, popular, post, ajax, shortcode...
wp-ranking-pro/wp-ranking-pro.php Passed 13 tests
This is the main PHP file of "WP-Ranking PRO" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
"WP-Ranking PRO" totals a page view, and into which a popular article can be formed by various elements or periods.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,336 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 739 | 190 | 4,157 |
PO File | 1 | 334 | 0 | 681 |
CSS | 2 | 78 | 6 | 369 |
JavaScript | 3 | 32 | 8 | 129 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 42.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 158 | |
▷ Static methods | 1 | 0.63% |
▷ Public methods | 94 | 59.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 64 | 40.51% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
thumb.png | 4.53KB | 1.53KB | ▼ 66.23% |
images/arrow_up.png | 1.83KB | 0.24KB | ▼ 87.01% |
images/add.png | 1.21KB | 0.27KB | ▼ 77.83% |
images/arrow_down.png | 1.84KB | 0.24KB | ▼ 87.02% |