Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▼330.34ms] Passed 4 tests
An overview of server-side resources used by WP Adtentions Light
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.57 | 126.81 ▲73.27 |
Dashboard /wp-admin | 3.96 ▲0.55 | 38.11 ▲2.67 |
Posts /wp-admin/edit.php | 4.17 ▲0.52 | 40.66 ▲1.45 |
Add New Post /wp-admin/post-new.php | 7.82 ▲0.84 | 111.94 ▼1,323.05 |
Media Library /wp-admin/upload.php | 3.92 ▲0.62 | 29.12 ▼2.43 |
Clicks /wp-admin/edit.php?post_type=wp_adtentions&page=adt-tracker_page | 3.85 | 43.13 |
Helps /wp-admin/edit.php?post_type=wp_adtentions&page=adt-help_page | 3.78 | 48.24 |
Create Adtention /wp-admin/post-new.php?post_type=wp_adtentions | 4.09 | 42.22 |
All Adtentions /wp-admin/edit.php?post_type=wp_adtentions | 3.94 | 30.72 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Adtentions Light
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲116 | 16.18 ▲0.47 | 6.00 ▲0.48 | 2.52 ▼0.20 |
Dashboard /wp-admin | 2,941 ▲83 | 6.00 ▼0.12 | 120.86 ▼16.60 | 170.74 ▲8.33 |
Posts /wp-admin/edit.php | 2,735 ▲50 | 3.12 ▼0.11 | 66.72 ▲3.84 | 153.01 ▲10.19 |
Add New Post /wp-admin/post-new.php | 1,693 ▲32 | 17.54 ▲1.50 | 417.07 ▼5.73 | 190.83 ▲11.35 |
Media Library /wp-admin/upload.php | 1,750 ▲55 | 5.46 ▼0.15 | 126.85 ▼16.51 | 225.65 ▲36.21 |
Clicks /wp-admin/edit.php?post_type=wp_adtentions&page=adt-tracker_page | 1,028 | 2.36 | 63.89 | 112.10 |
Helps /wp-admin/edit.php?post_type=wp_adtentions&page=adt-help_page | 1,069 | 2.38 | 56.84 | 115.72 |
Create Adtention /wp-admin/post-new.php?post_type=wp_adtentions | 4,628 | 11.59 | 281.68 | 298.60 |
All Adtentions /wp-admin/edit.php?post_type=wp_adtentions | 1,515 | 3.85 | 76.66 | 190.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=wp_adtentions
- > Notice in wp-content/plugins/wp-adtentions/wpadtentions.php+41
Undefined variable: post_type
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-adtentions/include/display/adtshowshortcode.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-adtentions/include/adtenqscriptstyle.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-adtentions/include/required_files.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-adtentions/include/save/adtsaveanimationwa.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-adtentions/include/required_files.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-adtentions/include/adds/help.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-adtentions/include/controls/adtdisplaycontrol.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-adtentions/include/cookies.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-adtentions/include/adds/tracker.php:4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-adtentions/include/required_files.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wp_adtentions
- > Network (severe)
wp-content/plugins/wp-adtentions/css/admin/preview.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wp_adtentions
- > Javascript (severe) in unknown
/wp-content/plugins/wp-adtentions/js/admin/jquery.hashchange.min.js?ver=1.0.0 8:686 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- > GET request to /wp-admin/post-new.php?post_type=wp_adtentions
- > Network (severe)
wp-content/plugins/wp-adtentions/css/admin/images/ui-bg_glass_35_dddddd_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Tags: There are too many tags (24 tag instead of maximum 10)
wp-adtentions/wpadtentions.php 85% from 13 tests
The primary PHP file in "WP Adtentions Light" version 0.1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-adtentions.php" instead of "wpadtentions.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 450 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin5,024 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 351 | 176 | 2,580 |
JavaScript | 12 | 237 | 93 | 1,255 |
CSS | 12 | 182 | 115 | 1,189 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 173)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.92 |
Average class complexity | 39.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 208.00 |
Average method complexity | 12.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 173.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 93.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.15% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/paper-plane.png | 3.24KB | 0.64KB | ▼ 80.24% |
css/admin/img/off.png | 3.67KB | 1.40KB | ▼ 61.79% |
img/close.png | 3.50KB | 0.52KB | ▼ 85.20% |
css/admin/images/dd.png | 2.93KB | 0.43KB | ▼ 85.29% |
img/go-pro.png | 28.33KB | 11.89KB | ▼ 58.04% |