78% claim-review-schema

Code Review | Full Fact - Claim Review Schema

WordPress plugin Full Fact - Claim Review Schema scored78%from 54 tests.

About plugin

  • Plugin page: claim-review-schema
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5
  • WordPress version: 6.3.1
  • First release: Oct 22, 2019
  • Latest release: Aug 26, 2020
  • Number of updates: 10
  • Update frequency: every 31.8 days
  • Top authors: rhyswynne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,652 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1040.97 ▲0.67
Dashboard /wp-admin3.18 ▼0.1331.51 ▼21.87
Posts /wp-admin/edit.php3.32 ▼0.0434.95 ▼15.61
Add New Post /wp-admin/post-new.php5.55 ▼0.3468.09 ▼27.15
Media Library /wp-admin/upload.php3.26 ▲0.0228.99 ▼6.68
Claim Review Schema Settings /wp-admin/options-general.php?page=fact-check3.1727.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.75 ▼0.891.71 ▼0.0842.80 ▼3.78
Dashboard /wp-admin2,223 ▲385.08 ▼0.7998.99 ▼12.7038.28 ▼3.15
Posts /wp-admin/edit.php2,113 ▲212.25 ▲0.1933.50 ▼6.4731.00 ▼6.06
Add New Post /wp-admin/post-new.php6,400 ▲4,87218.73 ▼4.31924.35 ▲242.0865.58 ▲13.88
Media Library /wp-admin/upload.php1,408 ▲204.52 ▲0.3396.18 ▼16.8339.69 ▼8.47
Claim Review Schema Settings /wp-admin/options-general.php?page=fact-check9081.8326.9027.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS253481,273
PHP8182155514
Markdown125067
JavaScript16039

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 code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
css/images/ui-icons_888888_256x240.png6.94KB4.18KB▼ 39.78%
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.32KB0.18KB▼ 44.00%
css/images/ui-bg_glass_55_fbf9ee_1x400.png0.38KB0.12KB▼ 67.68%
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.32KB0.15KB▼ 53.40%
css/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%