Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼7.61ms] Passed 4 tests
Server-side resources used by CM CSS Columns
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 43.68 ▼2.01 |
Dashboard /wp-admin | 3.47 ▲0.17 | 50.66 ▼0.12 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 49.04 ▼4.29 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 89.66 ▼24.02 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.56 ▲3.83 |
CSS Columns /wp-admin/options-general.php?page=cm-css-columns | 3.36 | 34.74 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by CM CSS Columns
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.40 ▲0.01 | 1.74 ▼0.16 | 43.31 ▼2.40 |
Dashboard /wp-admin | 2,216 ▲36 | 5.80 ▲0.17 | 94.19 ▲1.29 | 36.40 ▼5.84 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.29 ▲0.25 | 39.92 ▼0.12 | 35.31 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.18 ▼0.54 | 657.02 ▼7.61 | 36.52 ▼16.86 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.35 ▲0.15 | 100.71 ▼4.93 | 46.07 ▼1.48 |
CSS Columns /wp-admin/options-general.php?page=cm-css-columns | 1,128 | 2.07 | 25.42 | 47.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
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 codemacher\\CssColumns\\plugin_dir_path() in wp-content/plugins/cm-css-columns/includes/CorePlugin.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function codemacher\\CssColumns\\plugin_dir_path() in wp-content/plugins/cm-css-columns/admin/Admin.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=cm-css-columns
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=cm-css-columns 158 The specified value "inital" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: shortcode, columns, css3
cm-css-columns/cm-css-columns.php Passed 13 tests
"CM CSS Columns" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
Use column layouts without any layout builder! Wrap your content and display columns.
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
No dangerous file extensions were detected705 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 137 | 517 | 478 |
JavaScript | 1 | 14 | 2 | 210 |
CSS | 2 | 0 | 4 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 3 | 5.56% |
▷ Public methods | 46 | 85.19% |
▷ Protected methods | 2 | 3.70% |
▷ Private methods | 6 | 11.11% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/icon.png | 0.50KB | 0.61KB | 0.00% |