Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method aklamatorPopWidget::set_up_options_popup() should not be called statically
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.55ms] Passed 4 tests
Analyzing server-side resources used by Aklamator PopUp
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.91 ▼0.35 |
Dashboard /wp-admin | 3.40 ▲0.06 | 47.99 ▼14.46 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.28 ▼4.28 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 118.90 ▲27.08 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.05 ▼3.09 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 18 new options
New WordPress options |
---|
aklamatorPopupWidgets |
aklamatorPopPoweredBy |
can_compress_scripts |
aklamatorPopFeatured2Feed |
aklamatorPopApplicationID |
widget_theysaidso_widget |
aklamatorPopUpWidgetID |
db_upgraded |
aklamatorPopSingleWidgetTitle |
aklamatorPopSingleWidgetID |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Aklamator PopUp
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲73 | 13.38 ▼1.43 | 2.93 ▲1.05 | 39.95 ▼3.55 |
Dashboard /wp-admin | 2,239 ▲36 | 4.92 ▼0.89 | 97.89 ▼14.43 | 75.57 ▲31.17 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.98 ▼0.07 | 34.77 ▼2.80 | 33.57 ▼3.77 |
Add New Post /wp-admin/post-new.php | 1,540 ▼8 | 23.05 ▼0.22 | 754.42 ▲88.44 | 56.27 ▼10.69 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.23 ▲0.03 | 99.10 ▼2.29 | 73.08 ▲29.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method aklamatorPopWidget::aklamatorPop_uninstall() should not be called statically
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_wp_widget_aklamatorpop
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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 no errors were found, this is by no means an exhaustive test
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aklamator-popup/includes/class-widget-aklamator-popup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/aklamator-popup/aklamator-popup.php:22
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/aklamator-popup/views/admin-page.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== aklamator-popup ===
)
aklamator-popup/aklamator-popup.php 92% from 13 tests
The principal PHP file in "Aklamator PopUp" v. 2.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 187 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected929 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 189 | 77 | 606 |
JavaScript | 2 | 32 | 5 | 229 |
CSS | 2 | 14 | 3 | 94 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
8 PNG files occupy 0.35MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/promo-300x200.png | 77.36KB | 27.52KB | ▼ 64.43% |
images/aklamator-icon.png | 0.62KB | 0.58KB | ▼ 6.27% |
images/teaser-810x262.png | 279.89KB | 88.35KB | ▼ 68.43% |
assets/dataTables/images/sort_desc.png | 1.10KB | 0.17KB | ▼ 84.15% |
assets/dataTables/images/sort_asc_disabled.png | 1.09KB | 0.17KB | ▼ 84.66% |