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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.12MB] [CPU: ▼17.83ms] Passed 4 tests
A check of server-side resources used by Full Fact - Claim Review Schema
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.97 ▲0.67 |
Dashboard /wp-admin | 3.18 ▼0.13 | 31.51 ▼21.87 |
Posts /wp-admin/edit.php | 3.32 ▼0.04 | 34.95 ▼15.61 |
Add New Post /wp-admin/post-new.php | 5.55 ▼0.34 | 68.09 ▼27.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 28.99 ▼6.68 |
Claim Review Schema Settings /wp-admin/options-general.php?page=fact-check | 3.17 | 27.49 |
Server storage [IO: ▲0.10MB] [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: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Full Fact - Claim Review Schema
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.75 ▼0.89 | 1.71 ▼0.08 | 42.80 ▼3.78 |
Dashboard /wp-admin | 2,223 ▲38 | 5.08 ▼0.79 | 98.99 ▼12.70 | 38.28 ▼3.15 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.25 ▲0.19 | 33.50 ▼6.47 | 31.00 ▼6.06 |
Add New Post /wp-admin/post-new.php | 6,400 ▲4,872 | 18.73 ▼4.31 | 924.35 ▲242.08 | 65.58 ▲13.88 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.52 ▲0.33 | 96.18 ▼16.83 | 39.69 ▼8.47 |
Claim Review Schema Settings /wp-admin/options-general.php?page=fact-check | 908 | 1.83 | 26.90 | 27.35 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=fact-check
- > Notice in wp-content/plugins/claim-review-schema/inc/metabox.php+125
Undefined variable: claimreviewedcurrent
- > GET request to /wp-admin/options-general.php?page=fact-check
- > Notice in wp-content/plugins/claim-review-schema/inc/metabox.php+155
Undefined variable: claimoriginalcurrent
- > GET request to /wp-admin/options-general.php?page=fact-check
- > Notice in wp-content/plugins/claim-review-schema/inc/metabox.php+171
Undefined variable: claimasssessmentcurrent
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/claim-review-schema/claim-review-plugin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/claim-review-schema/inc/options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/claim-review-schema/inc/display.php:180
- > PHP Warning
Use of undefined constant CLAIMREVIEW_PLUGIN_PATH - assumed 'CLAIMREVIEW_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/claim-review-schema/inc/core.php on line 3
- > PHP Warning
require_once(CLAIMREVIEW_PLUGIN_PATH/inc/options.php): failed to open stream: No such file or directory in wp-content/plugins/claim-review-schema/inc/core.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/claim-review-schema/inc/enqueue.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/claim-review-schema/inc/metabox.php:32
- > PHP Fatal error
require_once(): Failed opening required 'CLAIMREVIEW_PLUGIN_PATH/inc/options.php' (include_path='.:/usr/share/php') in wp-content/plugins/claim-review-schema/inc/core.php on line 3
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: schema
claim-review-schema/claim-review-plugin.php 85% from 13 tests
The main PHP script in "Full Fact - Claim Review Schema" version 1.0.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("claim-review-schema.php" instead of "claim-review-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,893 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 53 | 48 | 1,273 |
PHP | 8 | 182 | 155 | 514 |
Markdown | 1 | 25 | 0 | 67 |
JavaScript | 1 | 6 | 0 | 39 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.18KB | ▼ 44.00% |
css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |
css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.32KB | 0.15KB | ▼ 53.40% |
css/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |