Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.67ms] Passed 4 tests
A check of server-side resources used by CS^3lider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.06 ▼7.24 |
Dashboard /wp-admin | 3.33 ▲0.03 | 41.73 ▼5.65 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.99 ▲10.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 80.83 ▼12.87 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.76 ▼0.91 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
widget_cs3lider |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
CS^3lider: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.32 ▼1.24 | 2.24 ▲0.29 | 43.26 ▲4.38 |
Dashboard /wp-admin | 2,230 ▲45 | 4.92 ▲0.05 | 123.98 ▲5.42 | 42.57 ▼10.10 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.05 ▲0.07 | 47.31 ▲8.13 | 34.13 ▼5.89 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.37 ▲1.97 | 698.67 ▲4.81 | 55.57 ▲0.50 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.23 ▲0.07 | 113.44 ▼9.86 | 51.54 ▼2.56 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_cs3lider
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function cs3lider\\add_action() in wp-content/plugins/cs3lider/cs3lider-admin.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cs3lider/cs3lider.php:16
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: css, slider
cs3lider/cs3lider.php Passed 13 tests
The primary PHP file in "CS^3lider" version 0.0.1 is used by WordPress to initiate all plugin functionality
96 characters long description:
CS^3lider is a WordPress plugin to create very lightweight sliders written in only CSS and HTML.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected356 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 73 | 34 | 258 |
JavaScript | 1 | 4 | 1 | 62 |
CSS | 1 | 5 | 0 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 97 | |
▷ Named functions | 37 | 38.14% |
▷ Anonymous functions | 60 | 61.86% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected