Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Parse error in wp-content/plugins/post-content-slider/includes/pcs_widget_showdata.php+34
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.59ms] Passed 4 tests
Server-side resources used by Post Content Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.38 ▼3.84 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.80 ▼17.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.67 ▲5.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.91 ▼17.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.34 ▲4.25 |
Server storage [IO: ▲0.02MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Content Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.33 ▼0.87 | 1.68 ▼0.09 | 39.36 ▼5.04 |
Dashboard /wp-admin | 2,209 ▲24 | 5.90 ▲0.04 | 105.83 ▲0.88 | 40.88 ▼1.53 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.02 ▼0.00 | 39.04 ▼3.40 | 37.82 ▲3.04 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 23.32 ▲5.17 | 635.03 ▲28.02 | 49.38 ▼0.03 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.13 | 94.75 ▼8.78 | 43.74 ▼1.34 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/post-content-slider/includes/pcs_post_template.php:4
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/post-content-slider/includes/pcs_widget_showdata.php on line 34
- > PHP Notice
Undefined variable: i in wp-content/plugins/post-content-slider/includes/pcs_post_template.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/post-content-slider/postcontentslider.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: widget, sidebar, slideshow, posts, ajax
post-content-slider/postcontentslider.php 92% from 13 tests
The main PHP file in "Post Content Slider" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("post-content-slider.php" instead of "postcontentslider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected309 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 14 | 15 | 190 |
JavaScript | 1 | 2 | 0 | 82 |
XML | 1 | 0 | 0 | 23 |
CSS | 1 | 2 | 0 | 12 |
INI | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin