Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.44ms] Passed 4 tests
Analyzing server-side resources used by Glamour - Visual CSS Styling Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 42.41 ▲1.25 |
Dashboard /wp-admin | 3.47 ▲0.17 | 51.21 ▼3.28 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.89 ▲0.89 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 95.77 ▼3.92 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.25 ▼3.44 |
Server storage [IO: ▲4.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Glamour - Visual CSS Styling Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.24 ▼0.31 | 1.68 ▼0.03 | 40.43 ▼11.11 |
Dashboard /wp-admin | 2,217 ▲40 | 5.59 ▲0.05 | 88.19 ▼13.12 | 40.86 ▼6.95 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.01 ▼0.00 | 41.34 ▲6.58 | 34.66 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.24 ▲0.07 | 661.43 ▼20.56 | 52.28 ▼13.14 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.24 ▲0.02 | 96.77 ▼10.16 | 41.92 ▼6.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/glamour/includes/other/about.php:3
- > PHP Warning
include_once(): Failed opening 'GLMR_PATH/includes/editor/class-editor.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/glamour/includes/plugin.php on line 48
- > PHP Warning
Use of undefined constant GLMR_URL - assumed 'GLMR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/glamour/includes/editor/editor-view.php on line 84
- > PHP Fatal error
Uncaught Error: Class 'glamour\\other\\Base' not found in wp-content/plugins/glamour/includes/other/class-css-file.php:5
- > PHP Warning
include_once(GLMR_PATH/includes/other/class-admin-bar.php): failed to open stream: No such file or directory in wp-content/plugins/glamour/includes/plugin.php on line 47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/glamour/includes/plugin.php:36
- > PHP Warning
Use of undefined constant GLMR_PATH - assumed 'GLMR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/glamour/includes/plugin.php on line 44
- > PHP Warning
Use of undefined constant GLMR_PATH - assumed 'GLMR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/glamour/includes/plugin.php on line 46
- > PHP Warning
include_once(GLMR_PATH/includes/other/class-css-file.php): failed to open stream: No such file or directory in wp-content/plugins/glamour/includes/plugin.php on line 49
- > PHP Warning
include_once(GLMR_PATH/includes/editor/class-editor.php): failed to open stream: No such file or directory in wp-content/plugins/glamour/includes/plugin.php on line 48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: visual css, css, editor, custom, customize...
glamour/glamour.php 92% from 13 tests
Analyzing the main PHP file in "Glamour - Visual CSS Styling Plugin" version 1.0.0
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected44,501 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 7,109 | 8,032 | 34,931 |
CSS | 14 | 1,853 | 58 | 5,672 |
SVG | 3 | 0 | 12 | 2,829 |
PHP | 10 | 166 | 11 | 1,069 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 28.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 34 | 82.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.07% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/panel.png | 21.95KB | 7.77KB | ▼ 64.63% |