Benchmarks
Plugin footprint 65% 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.01MB] [CPU: ▼9.05ms] Passed 4 tests
Analyzing server-side resources used by Responsive CSS EDITOR
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.39 ▲0.16 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.44 ▼12.65 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 40.75 ▼7.43 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.31 ▼16.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.43 ▲0.13 |
Responsive CSS /wp-admin/themes.php?page=wpwoxresponsive_editorsss_functions-identifier | 3.37 | 39.64 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wpwox_custom_css |
wp_wpwox_responsive_css |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
wpwox_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for Responsive CSS EDITOR
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.72 ▲0.45 | 1.67 ▼0.02 | 40.33 ▼6.84 |
Dashboard /wp-admin | 2,218 ▲37 | 5.61 ▼0.04 | 87.18 ▼20.96 | 39.87 ▼1.92 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.97 ▲0.00 | 34.35 ▼4.69 | 32.84 ▼6.21 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.53 ▲0.60 | 633.44 ▼11.16 | 51.77 ▲3.94 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.24 ▲0.11 | 99.25 ▼4.76 | 41.58 ▼5.30 |
Responsive CSS /wp-admin/themes.php?page=wpwoxresponsive_editorsss_functions-identifier | 882 | 2.12 | 30.77 | 34.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_wpwox_responsive_css
- wp_wpwox_custom_css
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- wpwox_db_version
- db_upgraded
- widget_recent-posts
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
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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/responsive-css-editor/addcsstobreakpoints.php
- > /wp-content/plugins/responsive-css-editor/addbreakpoints.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/responsive-css-editor/index.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Invalid version format
responsive-css-editor/index.php 92% from 13 tests
The entry point to "Responsive CSS EDITOR" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("responsive-css-editor.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin452 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 243 | 33 | 452 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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.06MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/down_aro.png | 19.04KB | 1.36KB | ▼ 92.87% |
assets/delete icon.png | 18.88KB | 1.56KB | ▼ 91.72% |
assets/up_aro.png | 19.01KB | 1.35KB | ▼ 92.87% |