Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.83ms] Passed 4 tests
Analyzing server-side resources used by Adnimation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.08 | 30.06 ▼14.12 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.02 ▼3.00 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.80 ▼3.11 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.10 ▼19.09 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.98 ▲2.81 |
Adnimation /wp-admin/options-general.php?page=apo_adnimation_options | 3.18 | 31.31 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- Illegal file modification found: 2 files (0.00KB) outside of "wp-content/plugins/wp-adnimation/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/wp-adnimation/assets/banner-772\303\227250.jpg"
- (new file) "wp-content/plugins/wp-adnimation/assets/banner-1544\303\227500.jpg"
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Adnimation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.35 ▼0.03 | 1.99 ▲0.02 | 43.91 ▲1.16 |
Dashboard /wp-admin | 2,204 ▲24 | 5.62 ▲0.00 | 88.83 ▼3.30 | 45.66 ▲9.28 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.03 ▲0.04 | 40.47 ▲4.09 | 38.92 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.08 ▲5.00 | 687.94 ▲52.90 | 63.32 ▼3.05 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.25 ▲0.03 | 101.54 ▲1.41 | 41.49 ▼5.81 |
Adnimation /wp-admin/options-general.php?page=apo_adnimation_options | 829 | 2.05 | 25.39 | 28.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=apo_adnimation_options
- > Notice in wp-content/plugins/wp-adnimation/wp-adnimation.php+142
Trying to access array offset on value of type bool
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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-adnimation/wp-adnimation.php:29
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (This is the simple wp-adnimation plugin settings area.), #2 (This is an example of an Adnimation ad.)
wp-adnimation/wp-adnimation.php Passed 13 tests
The principal PHP file in "Adnimation" v. 1.0 is loaded by WordPress automatically on each request
83 characters long description:
This plugin inserts the Adnimation code into your website for placing animated ads.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected122 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 50 | 113 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.34MB with 0.23MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 229.15KB | 63.88KB | ▼ 72.12% |
assets/screenshot-2.png | 114.34KB | 36.88KB | ▼ 67.74% |