Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/simple-directory/inc/category-images.php+9
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.02ms] Passed 4 tests
An overview of server-side resources used by Simple Directory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.67 ▼2.92 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.50 ▼17.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.79 ▼3.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.83 ▼20.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.99 ▲1.05 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 377 new files
Database: no new tables, 8 new options
New WordPress options |
---|
SDIR_VERSION_NUM |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
sdir_version |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Directory
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.32 | 1.67 ▼0.11 | 40.82 ▼3.62 |
Dashboard /wp-admin | 2,209 ▲18 | 5.86 ▼0.02 | 94.43 ▼11.61 | 37.89 ▼5.48 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.06 ▲0.04 | 35.76 ▼1.49 | 32.89 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.24 ▲0.64 | 610.67 ▼53.53 | 53.71 ▲0.35 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.02 | 92.68 ▼7.45 | 41.16 ▼3.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- SDIR_VERSION_NUM
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- sdir_version
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-directory/parts/admin-pages/guide.php
- 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-directory/parts/help/categories-help.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-directory/parts/settings/about.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-directory/inc/shortcodes.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function piklist() in wp-content/plugins/simple-directory/parts/settings/category-compatibility.php:10
- > PHP Warning
Use of undefined constant SDIR_PLUGIN_URL - assumed 'SDIR_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-directory/inc/category-images.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-directory/parts/help/basic-settings-help.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-directory/templates/single-new.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-directory/inc/category-images.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function piklist() in wp-content/plugins/simple-directory/parts/meta-boxes/primary-contact.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function piklist() in wp-content/plugins/simple-directory/parts/meta-boxes/social-profiles.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
simple-directory/simple-directory.php 85% from 13 tests
The main PHP file in "Simple Directory" ver. 2.1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin20,126 lines of code in 360 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 888 | 417 | 8,220 |
SVG | 284 | 5 | 286 | 5,965 |
HTML | 1 | 314 | 1 | 3,483 |
PHP | 70 | 543 | 481 | 2,458 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 6.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
4 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/img/search-widget.png | 32.07KB | 8.34KB | ▼ 73.99% |
lib/img/sdp-banner.png | 24.27KB | 9.04KB | ▼ 62.73% |
lib/img/icon-128x128.png | 3.64KB | 2.20KB | ▼ 39.60% |
lib/img/recent-listings-widget.png | 29.55KB | 7.63KB | ▼ 74.20% |