Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.95ms] Passed 4 tests
Analyzing server-side resources used by Magic schema
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.85 ▲10.35 | 1,996,469.25 ▲1,996,418.33 |
Dashboard /wp-admin | 3.39 ▲0.04 | 53.45 ▲0.79 |
Posts /wp-admin/edit.php | 3.50 ▲0.10 | 49.38 ▼3.77 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.06 | 87.70 ▼20.68 |
Media Library /wp-admin/upload.php | 3.31 ▲0.04 | 42.19 ▲3.86 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Magic schema
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.68 ▲0.07 | 2.08 ▲0.12 | 45.83 ▲3.56 |
Dashboard /wp-admin | 2,204 ▲27 | 5.52 ▼0.13 | 91.38 ▼4.76 | 45.30 ▼0.15 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▼0.02 | 36.47 ▼1.95 | 35.53 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6,247 ▲4,721 | 25.96 ▲2.86 | 911.35 ▲202.29 | 57.64 ▲1.30 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.21 ▼0.02 | 112.24 ▲6.29 | 49.41 ▲3.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magic-schema/inc/admin/add-metaboxes.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/magic-schema/inc/defined.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/magic-schema/inc/defined.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/magic-schema/inc/defined.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/magic-schema/inc/functions.php:101
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magic-schema/inc/admin/create-MagicSchema.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Metabox that can be seen after installation screenshot-1.png), #2 (Display on page screenshot-2.png), #3 (Show answers on the page screenshot-3.png), #4 (rich test google screenshot-4.png)
magic-schema/MagicSchema.php 85% from 13 tests
This is the main PHP file of "Magic schema" version 1..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("magic-schema.php" instead of "MagicSchema.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")
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
Everything looks great! No dangerous files found in this plugin427 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 51 | 33 | 235 |
CSS | 1 | 2 | 0 | 112 |
JavaScript | 2 | 22 | 12 | 80 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 37.40KB | 15.27KB | ▼ 59.17% |
screenshot-1.png | 25.51KB | 10.02KB | ▼ 60.70% |
assets/img/deleted.png | 4.46KB | 2.92KB | ▼ 34.67% |
assets/img/bin.png | 2.03KB | 1.92KB | ▼ 5.06% |
screenshot-4.png | 39.52KB | 16.57KB | ▼ 58.09% |