Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-includes/plugin.php+1001
Undefined offset: 0
Server metrics [RAM: ▼1.76MB] [CPU: ▼50.19ms] Passed 4 tests
This is a short check of server-side resources used by anpPopular Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 5.97 ▼37.47 |
Dashboard /wp-admin | 2.24 ▼1.06 | 8.99 ▼36.98 |
Posts /wp-admin/edit.php | 2.24 ▼1.11 | 7.61 ▼39.71 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.64 | 8.58 ▼86.60 |
Media Library /wp-admin/upload.php | 2.24 ▼0.98 | 7.50 ▼25.91 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_postview |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_anp_post_popular_post |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for anpPopular Post
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.52 ▼0.87 | 1.80 ▼0.05 | 43.47 ▲5.20 |
Dashboard /wp-admin | 2,205 ▲20 | 5.79 ▼0.06 | 96.04 ▼10.20 | 36.57 ▼5.48 |
Posts /wp-admin/edit.php | 2,080 ▼12 | 2.02 ▲0.01 | 35.49 ▼4.92 | 32.35 ▼4.60 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.38 ▲0.64 | 666.30 ▲13.00 | 59.58 ▼0.02 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.25 ▲0.07 | 98.99 ▼4.73 | 41.26 ▼5.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-includes/plugin.php+1001
Undefined offset: 0
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_postview
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_anp_post_popular_post
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/anppopular-post/anp_popular_post.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 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
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Requires at least: Version format is invalid
- Screenshots: Please add images for these screenshots: #1 (Option Widget on sidebar), #2 (Palette color Estandar), #3 (Palette color Green), #4 (Palette color Blue), #5 (Palette color Red)
anppopular-post/anp_popular_post.php 92% from 13 tests
The entry point to "anpPopular Post" version 1.0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("anppopular-post.php" instead of "anp_popular_post.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,717 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 140 | 37 | 788 |
PHP | 1 | 147 | 156 | 428 |
CSS | 4 | 20 | 0 | 416 |
PO File | 1 | 29 | 56 | 76 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Analyzing 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.22 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 11.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 47.34KB | 17.03KB | ▼ 64.02% |
js/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
screenshot-2.png | 52.67KB | 12.28KB | ▼ 76.69% |
screenshot-4.png | 55.38KB | 13.14KB | ▼ 76.28% |
screenshot-3.png | 53.55KB | 12.83KB | ▼ 76.04% |