Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.71ms] Passed 4 tests
Server-side resources used by Smart Post Lists Light
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.43 ▲1.67 |
Dashboard /wp-admin | 3.36 ▲0.05 | 54.68 ▼0.72 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.54 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.41 ▼4.73 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.29 ▼0.53 |
License Manager /wp-admin/admin.php?page=otw-spl-lm | 3.34 | 261.07 |
otwfcr /wp-admin/admin.php?page=otwfcr | 3.25 | 31.16 |
Plugin Options /wp-admin/admin.php?page=otw-spl | 3.29 | 27.90 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_smart-post-list-widget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Post Lists Light
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲168 | 13.61 ▼0.76 | 5.91 ▲4.00 | 42.94 ▼5.70 |
Dashboard /wp-admin | 2,244 ▲56 | 4.83 ▼0.05 | 106.65 ▼2.16 | 38.68 ▼1.41 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.05 ▲0.08 | 35.19 ▼4.95 | 33.46 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.26 ▲5.67 | 692.68 ▼10.60 | 66.95 ▲13.19 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.24 ▲0.05 | 93.81 ▼2.02 | 40.72 ▼0.54 |
License Manager /wp-admin/admin.php?page=otw-spl-lm | 938 | 2.03 | 24.93 | 27.41 |
otwfcr /wp-admin/admin.php?page=otwfcr | 778 | 2.03 | 24.40 | 21.06 |
Plugin Options /wp-admin/admin.php?page=otw-spl | 903 | 2.15 | 23.23 | 37.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_smart-post-list-widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/smart-post-lists-light/include/otw_components/otw_factory/views/action_message.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/smart-post-lists-light/include/otw_components/otw_factory/otw_factory.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/smart-post-lists-light/splw.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/smart-post-lists-light/include/otw_spll_process_actions.php:6
- > PHP Notice
Undefined variable: return_url in wp-content/plugins/smart-post-lists-light/include/otw_components/otw_factory/views/action_message.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/smart-post-lists-light/include/otw_labels/otw_spll_factory_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smart-post-lists-light/include/otw_spl_plugin_options.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/smart-post-lists-light/include/otw_components/otw_factory/views/license_manager.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Widget settings), #2 (A list with images, titles, dates and comments), #3 (Titles and excerpts), #4 (Only images), #5 (Images with title), #6 (Only titles), #7 (Image left of text), #8 (Image right of text)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
smart-post-lists-light/splw.php 85% from 13 tests
The entry point to "Smart Post Lists Light" version 1.8 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("smart-post-lists-light.php" instead of "splw.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 725 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
Success! There were no dangerous files found in this plugin7,405 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 41 | 24 | 2,600 |
PHP | 10 | 656 | 247 | 2,117 |
JavaScript | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 119.00 |
▷ Minimum class complexity | 60.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 8.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 86.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 14.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.70MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 88.35KB | 26.27KB | ▼ 70.26% |
screenshot-3.png | 8.05KB | 3.28KB | ▼ 59.27% |
screenshot-8.png | 159.22KB | 46.19KB | ▼ 70.99% |
screenshot-1.png | 26.53KB | 10.67KB | ▼ 59.79% |
screenshot-4.png | 126.23KB | 37.88KB | ▼ 69.99% |