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.13MB] [CPU: ▼1.29ms] Passed 4 tests
This is a short check of server-side resources used by Remove Schema
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.97 ▲1.98 |
Dashboard /wp-admin | 3.43 ▲0.12 | 50.57 ▼2.69 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.75 ▼0.99 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 95.31 ▼3.44 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.97 ▲4.31 |
Remove Schema /wp-admin/options-general.php?page=remove-schema | 3.37 | 31.63 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Remove Schema
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.19 ▼1.22 | 1.76 ▼0.35 | 44.07 ▼2.07 |
Dashboard /wp-admin | 2,213 ▲25 | 4.81 ▼0.06 | 100.99 ▼8.72 | 39.43 ▼0.23 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.00 | 38.88 ▼0.72 | 34.47 ▼1.43 |
Add New Post /wp-admin/post-new.php | 6,254 ▲4,843 | 26.14 ▲8.05 | 838.87 ▲224.80 | 58.55 ▲12.29 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.21 ▲0.02 | 95.26 ▼5.00 | 40.84 ▼13.93 |
Remove Schema /wp-admin/options-general.php?page=remove-schema | 895 | 2.08 | 25.09 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=remove-schema
- > Notice in wp-content/plugins/remove-schema/admin/partials/remove-schema-admin-display.php+45
Trying to access array offset on value of type bool
SRP 50% 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 fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/remove-schema/admin/partials/remove-schema-post-editor-display.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/remove-schema/admin/partials/remove-schema-post-editor-display.php:20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/remove-schema/admin/partials/remove-schema-post-editor-display.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/remove-schema/admin/partials/remove-schema-admin-display.php:20
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/remove-schema/admin/partials/remove-schema-post-editor-display.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: schema, schema markup, structured data
remove-schema/remove-schema.php Passed 13 tests
This is the main PHP file of "Remove Schema" version 1.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Remove all Microdata, RDFa and/or JSON-ld that you don’t want on your page.
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
Everything looks great! No dangerous files found in this plugin652 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 195 | 568 | 503 |
PO File | 1 | 37 | 52 | 114 |
JavaScript | 1 | 6 | 30 | 32 |
CSS | 1 | 1 | 4 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin