Benchmarks
Plugin footprint 83% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼5.77ms] Passed 4 tests
This is a short check of server-side resources used by WP Plugin Repo Stats
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 34.43 ▼2.99 |
Dashboard /wp-admin | 3.49 ▲0.15 | 44.81 ▼15.88 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 48.76 ▲2.12 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 91.58 ▼6.02 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 34.15 ▲1.80 |
WordPress Plugin Repo Stats /wp-admin/options-general.php?page=wp-plugin-repo-stats | 3.38 | 29.23 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wpprs |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
WP Plugin Repo Stats: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.16 ▼1.22 | 1.66 ▼0.50 | 40.35 ▼4.81 |
Dashboard /wp-admin | 2,210 ▲25 | 4.82 ▼0.06 | 107.23 ▼7.83 | 42.31 ▼0.50 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.00 | 39.38 ▲3.83 | 34.47 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 18.55 ▼4.63 | 606.52 ▼76.42 | 55.40 ▼6.61 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.03 | 94.03 ▼8.16 | 42.30 ▼0.89 |
WordPress Plugin Repo Stats /wp-admin/options-general.php?page=wp-plugin-repo-stats | 1,013 | 2.20 | 26.98 | 48.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-plugin-repo-stats/wp_plugin_repo_stats.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Add an image for screenshot #3 (Screenshot of single plugin output display)
wp-plugin-repo-stats/wp_plugin_repo_stats.php 92% from 13 tests
The primary PHP file in "WP Plugin Repo Stats" version 0.3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-plugin-repo-stats.php" instead of "wp_plugin_repo_stats.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
Success! There were no dangerous files found in this plugin721 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 39 | 86 | 697 |
CSS | 2 | 0 | 0 | 21 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 30 | |
▷ Global constants | 30 | 100.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
7 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wordpress_icon.png | 2.57KB | 2.26KB | ▼ 12.30% |
images/settings.png | 2.11KB | 2.31KB | 0.00% |
images/examples.png | 3.78KB | 2.24KB | ▼ 40.82% |
images/parameters.png | 3.48KB | 2.94KB | ▼ 15.45% |
images/stars.png | 1.97KB | 1.07KB | ▼ 45.82% |