Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.73MB] [CPU: ▲20.04ms] 75% from 4 tests
This is a short check of server-side resources used by Schema
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 2,572.46ms on /wp-admin/admin.php?page=schema-extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲1.03 | 376.14 ▲337.59 |
Dashboard /wp-admin | 5.27 ▲1.96 | 66.31 ▲18.11 |
Posts /wp-admin/edit.php | 5.33 ▲1.97 | 69.22 ▲17.45 |
Add New Post /wp-admin/post-new.php | 7.83 ▲1.95 | 113.81 ▲26.23 |
Media Library /wp-admin/upload.php | 5.20 ▲1.97 | 55.19 ▲18.35 |
Settings /wp-admin/admin.php?page=schema | 5.21 | 53.52 |
What's new in Schema /wp-admin/index.php?page=schema-wp-what-is-new | 5.20 | 55.18 |
Extensions /wp-admin/admin.php?page=schema-extensions | 5.43 | 2,572.46 |
About /wp-admin/admin.php?page=schema-wp-what-is-new | 5.20 | 52.97 |
Getting started with Schema /wp-admin/index.php?page=schema-wp-getting-started | 5.20 | 52.70 |
The people that build Schema /wp-admin/index.php?page=schema-wp-credits | 5.20 | 52.44 |
Types /wp-admin/edit.php?post_type=schema | 5.31 | 60.07 |
Schema Setup Wizard /wp-admin/index.php?page=schema-setup | 5.06 | 41.83 |
Server storage [IO: ▲3.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 140 new files
Database: no new tables, 9 new options
New WordPress options |
---|
schema_wp_version |
can_compress_scripts |
schema_wp_is_installed |
widget_theysaidso_widget |
db_upgraded |
schema_wp_settings |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Schema
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲242 | 14.26 ▲0.02 | 1.70 ▲0.02 | 41.18 ▲0.28 |
Dashboard /wp-admin | 2,405 ▲231 | 5.60 ▼0.06 | 94.69 ▼11.00 | 41.98 ▼1.94 |
Posts /wp-admin/edit.php | 2,287 ▲187 | 2.01 ▼0.02 | 41.99 ▲5.13 | 35.75 ▼1.59 |
Add New Post /wp-admin/post-new.php | 6,342 ▲4,816 | 26.14 ▲3.15 | 811.51 ▲153.74 | 71.85 ▲20.99 |
Media Library /wp-admin/upload.php | 1,654 ▲257 | 4.26 ▲0.09 | 99.39 ▼5.97 | 74.84 ▲30.52 |
Settings /wp-admin/admin.php?page=schema | 1,441 | 3.62 | 65.32 | 30.51 |
What's new in Schema /wp-admin/index.php?page=schema-wp-what-is-new | 1,386 | 3.66 | 50.36 | 96.86 |
Extensions /wp-admin/admin.php?page=schema-extensions | 1,237 | 3.72 | 45.38 | 38.45 |
About /wp-admin/admin.php?page=schema-wp-what-is-new | 1,389 | 3.70 | 49.24 | 89.39 |
Getting started with Schema /wp-admin/index.php?page=schema-wp-getting-started | 1,279 | 3.61 | 42.53 | 86.18 |
The people that build Schema /wp-admin/index.php?page=schema-wp-credits | 1,218 | 3.58 | 44.04 | 32.77 |
Types /wp-admin/edit.php?post_type=schema | 1,990 | 2.18 | 35.69 | 30.54 |
Schema Setup Wizard /wp-admin/index.php?page=schema-setup | 326 | 3.35 | 48.64 | 69.68 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- schema_wp_version
- can_compress_scripts
- theysaidso_admin_options
- schema_wp_settings
- db_upgraded
- schema_wp_is_installed
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/schema/includes/admin/scripts.php:43
- > PHP Warning
require_once(Tax-meta-class/Tax-meta-class.php): failed to open stream: No such file or directory in wp-content/plugins/schema/includes/admin/meta-tax/class-usage-demo.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'custom_add_meta_box' not found in wp-content/plugins/schema/includes/admin/meta/sample.php:161
- > PHP Fatal error
require_once(): Failed opening required 'Tax-meta-class/Tax-meta-class.php' (include_path='.:/usr/share/php') in wp-content/plugins/schema/includes/admin/meta-tax/class-usage-demo.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 65 tag instead of maximum 10
schema/schema.php 92% from 13 tests
The main PHP script in "Schema" version 1.7.9.6 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected36,172 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 2,751 | 1,054 | 11,010 |
PHP | 65 | 2,662 | 4,644 | 9,008 |
Sass | 2 | 1,012 | 8 | 6,628 |
PO File | 6 | 2,602 | 3,238 | 5,826 |
CSS | 15 | 465 | 131 | 3,621 |
Markdown | 1 | 24 | 0 | 61 |
SVG | 2 | 0 | 1 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 38.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 1 | 6.25% |
Methods | 192 | |
▷ Static methods | 2 | 1.04% |
▷ Public methods | 167 | 86.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 25 | 13.02% |
Functions | 208 | |
▷ Named functions | 207 | 99.52% |
▷ Anonymous functions | 1 | 0.48% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 0.78MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-2.png | 86.52KB | 28.16KB | ▼ 67.46% |
assets/images/screenshot-6.png | 75.27KB | 32.05KB | ▼ 57.42% |
includes/admin/meta/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
includes/admin/meta-tax/images/edit.png | 1.54KB | 1.38KB | ▼ 10.34% |
assets/images/admin-bar/google-developers.png | 1.21KB | 0.55KB | ▼ 54.84% |