Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.31ms] Passed 4 tests
Server-side resources used by DZS Ajaxer Lite - Ajaxify Your Wordpress Site and Comments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 36.39 ▼5.67 |
Dashboard /wp-admin | 3.52 ▲0.22 | 48.01 ▲1.26 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 50.29 ▲6.78 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 84.55 ▼11.97 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.36 ▲3.13 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
dzsajx_mo |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DZS Ajaxer Lite - Ajaxify Your Wordpress Site and Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲257 | 13.63 ▼0.67 | 6.81 ▲4.66 | 38.39 ▼4.94 |
Dashboard /wp-admin | 2,241 ▲53 | 5.89 ▲0.03 | 111.51 ▲3.73 | 41.49 ▼1.36 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 2.05 ▲0.02 | 42.35 ▲3.15 | 34.97 ▲4.29 |
Add New Post /wp-admin/post-new.php | 1,554 ▲20 | 18.26 ▼5.30 | 584.94 ▼97.89 | 63.38 ▲7.55 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.24 ▲0.03 | 96.02 ▼10.50 | 42.28 ▼3.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- dzsajx_mo
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/dzs-ajaxer-lite-dynamic-page-load/class_parts/themes_options.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dzs-ajaxer-lite-dynamic-page-load/class-dzsajx.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
dzs-ajaxer-lite-dynamic-page-load/ajaxer.php 92% from 13 tests
The principal PHP file in "DZS Ajaxer Lite - Ajaxify Your Wordpress Site and Comments" v. 1.04 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("dzs-ajaxer-lite-dynamic-page-load.php" instead of "ajaxer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,404 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 94 | 83 | 3,881 |
PHP | 4 | 444 | 119 | 1,426 |
XML | 6 | 0 | 0 | 922 |
SVG | 1 | 0 | 0 | 399 |
JavaScript | 4 | 138 | 28 | 314 |
Sass | 3 | 130 | 0 | 291 |
HTML | 1 | 5 | 0 | 171 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 5.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 32 | |
▷ Static methods | 19 | 59.38% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/sidebarleft.png | 1.69KB | 0.50KB | ▼ 70.66% |
admin/img/gamma-zoombox-close.png | 1.38KB | 0.39KB | ▼ 71.69% |
admin/img/sidebarright.png | 1.68KB | 0.50KB | ▼ 70.37% |
admin/img/sidebarnone.png | 1.66KB | 0.48KB | ▼ 71.24% |
admin/img/icon-hover.png | 1.55KB | 0.58KB | ▼ 62.78% |