Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.98ms] Passed 4 tests
This is a short check of server-side resources used by Magic Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 40.71 ▲1.41 |
Dashboard /wp-admin | 3.49 ▲0.14 | 47.46 ▼15.62 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 52.12 ▲7.63 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 92.86 ▲7.31 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 35.64 ▼1.01 |
Magic Posts /wp-admin/options-general.php?page=magic-posts-settings | 3.39 | 37.26 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
magic-posts_locale |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Magic Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 14.48 ▲0.10 | 1.68 ▼0.24 | 40.00 ▼12.70 |
Dashboard /wp-admin | 2,214 ▲26 | 4.88 ▼0.94 | 104.29 ▼4.17 | 37.86 ▼0.77 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.04 ▼0.00 | 42.40 ▲5.03 | 39.45 ▲7.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 22.82 ▼0.45 | 627.77 ▼80.87 | 53.57 ▼7.50 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.13 ▼0.10 | 98.39 ▼3.27 | 43.15 ▲0.65 |
Magic Posts /wp-admin/options-general.php?page=magic-posts-settings | 832 | 1.83 | 23.83 | 29.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- magic-posts_locale
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=magic-posts-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=magic-posts-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/magic-posts/js/magic-posts-js.php
- > /wp-content/plugins/magic-posts/lib/magic-posts/helpers/meta-boxes/string.php
- > /wp-content/plugins/magic-posts/lib/magic-posts/helpers/meta-boxes/text.php
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/magic-posts/lib/magic-posts/helpers/meta-boxes/text.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/magic-posts/lib/magic-posts/settings/view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/magic-posts/lib/magic-posts/helpers/meta-boxes/editor.php:2
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/magic-posts/lib/magic-posts/helpers/meta-boxes/gallery.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Magic_Posts' not found in wp-content/plugins/magic-posts/lib/magic-posts/scaffolds.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/magic-posts/lib/magic-posts/helpers/meta-boxes/image.php:4
- > PHP Fatal error
Uncaught Error: Class 'Magic_Posts' not found in wp-content/plugins/magic-posts/lib/magic-posts/migrations.php:3
- > PHP Fatal error
Uncaught Error: Class 'Magic_Posts' not found in wp-content/plugins/magic-posts/lib/magic-posts/strings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/magic-posts/lib/magic-posts/helpers/meta-boxes/gallery.php:4
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/magic-posts/lib/magic-posts/helpers/meta-boxes/image.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: scaffolding, gallery, custom posts, images, custom taxonomies...
magic-posts/magic-posts.php Passed 13 tests
The main PHP file in "Magic Posts" ver. 0.0.8 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Create Custom Post Types with simple scaffolds.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,596 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 544 | 290 | 1,471 |
JavaScript | 1 | 55 | 0 | 107 |
CSS | 1 | 11 | 0 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 39 | |
▷ Static methods | 14 | 35.90% |
▷ Public methods | 36 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.69% |
Functions | 39 | |
▷ Named functions | 5 | 12.82% |
▷ Anonymous functions | 34 | 87.18% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin