Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲5.03MB] [CPU: ▲25.87ms] 75% from 4 tests
Analyzing server-side resources used by Ajax Press - Easily Enable Fast Ajax Navigation
It is recommended to improve the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.03MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.79 ▲5.33 | 66.76 ▲27.06 |
Dashboard /wp-admin | 8.93 ▲5.62 | 78.96 ▲27.04 |
Posts /wp-admin/edit.php | 8.93 ▲5.57 | 81.05 ▲31.18 |
Add New Post /wp-admin/post-new.php | 9.50 ▲3.61 | 113.06 ▲18.18 |
Media Library /wp-admin/upload.php | 8.93 ▲5.70 | 81.61 ▲48.04 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.93 | 60.07 |
Server storage [IO: ▲3.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 178 new files
Database: no new tables, 15 new options
New WordPress options |
---|
ajax_press_version |
fs_debug_mode |
widget_theysaidso_widget |
ajax_press_notices |
fs_gdpr |
ajax_press_install_time |
can_compress_scripts |
widget_recent-posts |
fs_accounts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Ajax Press - Easily Enable Fast Ajax Navigation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲124 | 16.92 ▲2.30 | 3.71 ▲1.92 | 32.59 ▼7.36 |
Dashboard /wp-admin | 2,309 ▲135 | 7.51 ▲1.84 | 215.53 ▲117.96 | 52.14 ▲7.75 |
Posts /wp-admin/edit.php | 2,260 ▲160 | 7.13 ▲5.19 | 80.42 ▲39.80 | 44.88 ▲7.53 |
Add New Post /wp-admin/post-new.php | 1,587 ▲59 | 23.50 ▲0.52 | 562.51 ▼126.36 | 36.47 ▼16.64 |
Media Library /wp-admin/upload.php | 1,605 ▲202 | 9.01 ▲4.85 | 130.44 ▲30.16 | 50.42 ▲3.71 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,166 | 6.77 | 59.72 | 27.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/ajax-press/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 15 options in the database
- ajax_press_notices
- ajax_press_install_time
- fs_accounts
- fs_active_plugins
- ajax_press_theme_config_status
- widget_recent-comments
- can_compress_scripts
- fs_gdpr
- widget_recent-posts
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ajax-press/includes/class-enqueue.php
- > /wp-content/plugins/ajax-press/includes/theme-config-notice.php
- > /wp-content/plugins/ajax-press/includes/class-admin.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ajax-press/plugin.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ajax-press/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Ajax Press - Easily Enable Fast Ajax Navigation" version 1.0.1
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ajax-press.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected31,051 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 7,365 | 16,104 | 30,810 |
JavaScript | 5 | 34 | 69 | 198 |
JSON | 1 | 0 | 0 | 27 |
CSS | 13 | 0 | 0 | 16 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 81.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,163 | |
▷ Static methods | 180 | 15.48% |
▷ Public methods | 822 | 70.68% |
▷ Protected methods | 15 | 1.29% |
▷ Private methods | 326 | 28.03% |
Functions | 94 | |
▷ Named functions | 94 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 129 | |
▷ Global constants | 104 | 80.62% |
▷ Class constants | 25 | 19.38% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/notice.png | 15.30KB | 15.94KB | 0.00% |
assets/images/inspect-element.png | 33.90KB | 34.75KB | 0.00% |
assets/images/main-content-selector-settings.png | 14.09KB | 14.33KB | 0.00% |
assets/images/main-content-selector.png | 77.06KB | 81.24KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |