Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.11MB] [CPU: ▲4.93ms] Passed 4 tests
An overview of server-side resources used by WordPress Directory Listing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.66 ▲1.20 | 52.57 ▲12.52 |
Dashboard /wp-admin | 4.42 ▲1.08 | 54.55 ▼7.03 |
Posts /wp-admin/edit.php | 4.47 ▲1.12 | 57.04 ▲13.40 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.14 | 92.59 ▲1.57 |
Media Library /wp-admin/upload.php | 4.34 ▲1.12 | 47.54 ▲12.67 |
Settings /wp-admin/edit.php?post_type=directory&page=wpdl | 4.31 | 43.08 |
Keyword /wp-admin/edit-tags.php?taxonomy=directory_tags&post_type=directory | 4.34 | 40.75 |
Locations /wp-admin/edit.php?post_type=location | 4.39 | 44.93 |
Directory Category /wp-admin/edit-tags.php?taxonomy=directory_cat&post_type=directory | 4.34 | 43.49 |
Add Directory /wp-admin/post-new.php?post_type=directory | 4.49 | 58.66 |
Directories /wp-admin/edit.php?post_type=directory | 4.39 | 44.07 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 122 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Directory Listing
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲210 | 13.63 ▼0.78 | 12.21 ▲10.41 | 44.73 ▲3.11 |
Dashboard /wp-admin | 2,253 ▲62 | 4.91 ▲0.00 | 97.89 ▼8.15 | 66.50 ▲25.08 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.20 ▲0.16 | 34.09 ▼1.59 | 35.69 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,563 ▲49 | 23.28 ▲5.63 | 668.14 ▲9.73 | 53.37 ▲1.35 |
Media Library /wp-admin/upload.php | 1,447 ▲62 | 4.19 ▲0.00 | 95.73 ▼4.54 | 80.89 ▲37.59 |
Settings /wp-admin/edit.php?post_type=directory&page=wpdl | 874 | 1.94 | 27.62 | 26.42 |
Keyword /wp-admin/edit-tags.php?taxonomy=directory_tags&post_type=directory | 1,300 | 2.29 | 28.24 | 30.15 |
Locations /wp-admin/edit.php?post_type=location | 1,120 | 2.16 | 30.87 | 32.24 |
Directory Category /wp-admin/edit-tags.php?taxonomy=directory_cat&post_type=directory | 1,331 | 2.29 | 28.18 | 33.14 |
Add Directory /wp-admin/post-new.php?post_type=directory | 2,795 | 8.27 | 201.36 | 146.06 |
Directories /wp-admin/edit.php?post_type=directory | 1,123 | 2.17 | 31.44 | 31.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-directory-listing/includes/classes/class-responses-list.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-directory-listing/includes/classes/class-responses-list.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-directory-listing/assets/i18n/states/TZ.php:14
- > 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-directory-listing/includes/classes/class-responses-list.php on line 8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were found
wp-directory-listing/wp-directory-listing.php Passed 13 tests
"WordPress Directory Listing" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
38 characters long description:
Directory Listing Plugin for WordPress
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
There were no executable files found in this plugin12,217 lines of code in 114 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 1,913 | 1,567 | 5,744 |
CSS | 9 | 296 | 65 | 3,638 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 3 | 64 | 41 | 164 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 32.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 184 | |
▷ Static methods | 17 | 9.24% |
▷ Public methods | 163 | 88.59% |
▷ Protected methods | 3 | 1.63% |
▷ Private methods | 18 | 9.78% |
Functions | 65 | |
▷ Named functions | 62 | 95.38% |
▷ Anonymous functions | 3 | 4.62% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/directory.png | 19.20KB | 8.16KB | ▼ 57.51% |