Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.79MB] [CPU: ▼61.30ms] Passed 4 tests
An overview of server-side resources used by Origo WP Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 5.30 ▼42.52 |
Dashboard /wp-admin | 2.21 ▼1.09 | 7.26 ▼48.34 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 7.19 ▼47.43 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.67 | 6.47 ▼106.90 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 8.35 ▼28.86 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_origo_sliders |
wp_origo_slides |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Origo WP Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲186 | 14.03 ▼0.32 | 7.76 ▲6.06 | 40.59 ▼4.22 |
Dashboard /wp-admin | 2,231 ▲51 | 4.98 ▼0.69 | 98.05 ▼3.40 | 41.65 ▼3.95 |
Posts /wp-admin/edit.php | 2,137 ▲40 | 2.40 ▲0.26 | 40.71 ▲4.05 | 36.91 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.58 ▲0.44 | 688.16 ▼23.91 | 56.49 ▲8.06 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.48 ▲0.31 | 99.62 ▼11.68 | 46.13 ▼0.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure failed, leaving 2 tables in the database
- wp_origo_sliders
- wp_origo_slides
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
- 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'options' of non-object in wp-content/plugins/origo-wp-slider/includes/templates/slide.php on line 4
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/origo-wp-slider/includes/templates/slide.php on line 18
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/origo-wp-slider/includes/templates/slide.php on line 12
- > PHP Notice
Undefined variable: slide in wp-content/plugins/origo-wp-slider/includes/templates/slide.php on line 4
- > PHP Notice
Trying to get property 'bg_color' of non-object in wp-content/plugins/origo-wp-slider/includes/templates/slide.php on line 22
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/origo-wp-slider/includes/templates/slide.php on line 12
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/origo-wp-slider/includes/templates/slide.php on line 17
- > PHP Notice
Undefined variable: slide in wp-content/plugins/origo-wp-slider/includes/templates/slide.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/origo-wp-slider/includes/AjaxCall.php:2
- > PHP Notice
Undefined variable: slide in wp-content/plugins/origo-wp-slider/includes/templates/slide.php on line 18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: flexslider plugin, wordpress flexslider plugin, wordpress slider plugin
origo-wp-slider/OrigoSlider.php 85% from 13 tests
The main PHP script in "Origo WP Slider" version 1.0.0.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 169 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("origo-wp-slider.php" instead of "OrigoSlider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,137 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 169 | 86 | 1,122 |
JavaScript | 3 | 139 | 124 | 1,017 |
CSS | 3 | 53 | 209 | 998 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 1 | 2.86% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.71% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/left_arrow.png | 2.09KB | 1.86KB | ▼ 10.67% |
images/right_arrow.png | 2.19KB | 1.82KB | ▼ 16.64% |
includes/images/origo-slider.png | 19.62KB | 11.99KB | ▼ 38.87% |