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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.23ms] Passed 4 tests
An overview of server-side resources used by Content Snippet Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.51 ▲0.93 |
Dashboard /wp-admin | 3.34 ▼0.01 | 55.27 ▼9.77 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.98 ▼5.77 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.24 ▼22.29 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.41 ▲6.24 |
Content Snippet Manager /wp-admin/admin.php?page=csm_panel | 3.23 | 34.61 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Snippet Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.40 ▲0.02 | 1.80 ▼0.33 | 34.85 ▼7.43 |
Dashboard /wp-admin | 2,221 ▲44 | 5.62 ▼0.02 | 84.03 ▼5.71 | 79.74 ▲35.24 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.11 ▲0.09 | 36.19 ▼3.24 | 37.02 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,569 ▲37 | 23.08 ▼0.18 | 775.82 ▲87.98 | 68.21 ▲14.38 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.22 ▼0.03 | 111.48 ▲12.18 | 79.78 ▲34.94 |
Content Snippet Manager /wp-admin/admin.php?page=csm_panel | 935 | 3.13 | 44.33 | 60.83 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% 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
Please take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/content-snippet-manager/core/shortcodes/fb.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-snippet-manager/core/functions/csm_functions.php:121
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/content-snippet-manager/core/admin/panel.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/content-snippet-manager/core/shortcodes/analytics.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-snippet-manager/init.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Main settings), #2 (Import/Export section)
- Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
content-snippet-manager/init.php 77% from 13 tests
The primary PHP file in "Content Snippet Manager" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("3.5.0" instead of "3.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("content-snippet-manager.php" instead of "init.php")
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
There were no executable files found in this plugin34,011 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 54 | 3,922 | 290 | 31,216 |
PHP | 8 | 1,607 | 221 | 2,018 |
CSS | 5 | 112 | 27 | 622 |
PO File | 1 | 92 | 162 | 155 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 79.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 6.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 96.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.77% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/images/tip-logo-small.png | 6.03KB | 2.90KB | ▼ 51.90% |
core/assets/images/subparent.png | 0.94KB | 0.11KB | ▼ 88.00% |
core/assets/images/tip-icon.png | 1.13KB | 0.45KB | ▼ 60.38% |
core/assets/images/subparent-hover.png | 0.93KB | 0.11KB | ▼ 88.29% |
screenshot-1.png | 21.75KB | 9.35KB | ▼ 57.01% |