Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.49MB] [CPU: ▼23.19ms] Passed 4 tests
This is a short check of server-side resources used by Content Magnets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 36.55 ▼5.10 |
Dashboard /wp-admin | 3.59 ▲0.28 | 49.35 ▼0.06 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 39.42 ▼10.80 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.55 | 28.74 ▼76.81 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 41.80 ▲7.78 |
Settings /wp-admin/admin.php?page=content-magnets_settings | 3.51 | 34.92 |
Magnets /wp-admin/edit.php?post_type=cmg_magnet | 3.55 | 39.13 |
Subscribers /wp-admin/edit.php?post_type=cmg_capture | 3.52 | 38.52 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Magnets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,197 ▲451 | 13.64 ▼0.61 | 6.06 ▲4.35 | 39.50 ▼1.29 |
Dashboard /wp-admin | 2,506 ▲318 | 4.92 ▼0.99 | 106.66 ▲1.44 | 39.75 ▼2.54 |
Posts /wp-admin/edit.php | 2,360 ▲271 | 2.07 ▲0.08 | 41.71 ▲0.82 | 35.68 ▲0.47 |
Add New Post /wp-admin/post-new.php | 6,404 ▲4,876 | 22.72 ▼0.41 | 829.96 ▲219.63 | 39.09 ▼24.79 |
Media Library /wp-admin/upload.php | 1,795 ▲407 | 4.25 ▲0.05 | 98.82 ▼0.40 | 37.57 ▼6.15 |
Settings /wp-admin/admin.php?page=content-magnets_settings | 1,378 | 2.39 | 39.87 | 40.38 |
Magnets /wp-admin/edit.php?post_type=cmg_magnet | 1,335 | 1.99 | 34.76 | 28.76 |
Subscribers /wp-admin/edit.php?post_type=cmg_capture | 1,295 | 2.11 | 38.05 | 30.63 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/edit.php?post_type=cmg_capture
- > Notice in wp-content/plugins/content-magnets/lib/class.cmg.php+96
Undefined index: trash
SRP 50% 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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/content-magnets/view/admin/cmg_settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-magnets/lib/custom_post_types.php:118
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/content-magnets/lib/class.cmg-routes.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/content-magnets/content-magnets.php:19
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Too many tags (43 tag instead of maximum 10); only the first 5 tags are used in your directory listing
content-magnets/content-magnets.php 77% from 13 tests
The main PHP file in "Content Magnets" ver. 0.0.3.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "5.2")
- Description: Please keep the plugin description shorter than 140 characters (currently 220 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.5.0" instead of "4.0")
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
There were no executable files found in this plugin8,255 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 73 | 41 | 3,144 |
SVG | 2 | 0 | 1 | 2,680 |
PHP | 10 | 308 | 259 | 1,489 |
JavaScript | 4 | 86 | 48 | 942 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 31.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 61 | |
▷ Static methods | 57 | 93.44% |
▷ Public methods | 58 | 95.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.92% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
No PNG images were found in this plugin