Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.12MB] [CPU: ▼12.15ms] Passed 4 tests
Analyzing server-side resources used by Theme Stats View
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 35.92 ▼6.59 |
Dashboard /wp-admin | 3.45 ▲0.15 | 50.19 ▼3.88 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 51.23 ▲5.32 |
Add New Post /wp-admin/post-new.php | 4.97 ▼0.92 | 49.04 ▼39.77 |
Media Library /wp-admin/upload.php | 3.38 ▲0.14 | 36.56 ▲1.63 |
Theme Stats View /wp-admin/options-general.php?page=ThemeStatsView | 3.34 | 32.18 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Theme Stats View
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.19 ▼0.47 | 1.57 ▼0.40 | 39.18 ▼3.87 |
Dashboard /wp-admin | 2,196 ▲16 | 5.63 ▼0.03 | 95.65 ▲12.12 | 41.35 ▼5.25 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.05 | 35.96 ▼1.16 | 33.54 ▲0.58 |
Add New Post /wp-admin/post-new.php | 6,210 ▲4,679 | 21.15 ▼1.77 | 881.77 ▲197.69 | 75.33 ▲17.06 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.17 ▼0.05 | 97.65 ▼1.14 | 41.32 ▼1.71 |
Theme Stats View /wp-admin/options-general.php?page=ThemeStatsView | 919 | 2.00 | 25.39 | 29.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-stats-view/lib/class-themestatsviewadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-stats-view/lib/class-themestatsviewadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-stats-view/lib/class-themestatsview.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: stats, theme, theme stats
theme-stats-view/themestatsview.php 92% from 13 tests
The main PHP file in "Theme Stats View" ver. 1.09 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("theme-stats-view.php" instead of "themestatsview.php")
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
Good job! No executable or dangerous file extensions detected811 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 94 | 192 | 665 |
JavaScript | 4 | 10 | 0 | 119 |
JSON | 1 | 0 | 0 | 21 |
CSS | 1 | 0 | 3 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 43.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 5.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 27.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected