83% wp-factcheck

Code Review | WP Factcheck

WordPress plugin WP Factcheck scored 83% from 54 tests.

About plugin

  • Plugin page: wp-factcheck
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Aug 14, 2020
  • Latest release: Nov 6, 2021
  • Number of updates: 11
  • Update frequency: every 40.8 days
  • Top authors: willfonkam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 691 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.84ms] Passed 4 tests

Server-side resources used by WP Factcheck
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.69 ▼8.41
Dashboard /wp-admin3.45 ▲0.1546.34 ▼2.05
Posts /wp-admin/edit.php3.50 ▲0.1553.05 ▲5.08
Add New Post /wp-admin/post-new.php6.16 ▲0.2797.99 ▲1.07
Media Library /wp-admin/upload.php3.37 ▲0.1435.61 ▼1.97
Settings /wp-admin/edit.php?post_type=wpfc-fact-checking&page=wpfc-settings3.3431.32
Add New /wp-admin/post-new.php?post_type=wpfc-fact-checking6.1682.69
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wpfc-fact-checking3.3736.29
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpfc-fact-checking3.3739.74
All Fact-checks /wp-admin/edit.php?post_type=wpfc-fact-checking3.4339.36

Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
category_children
wpfc-options
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Factcheck: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲15213.80 ▼0.591.74 ▼0.3440.12 ▼5.01
Dashboard /wp-admin2,292 ▲1045.15 ▲0.32109.89 ▲3.8741.34 ▼7.24
Posts /wp-admin/edit.php2,180 ▲912.32 ▲0.2942.03 ▲1.7934.18 ▼2.99
Add New Post /wp-admin/post-new.php1,580 ▲6618.26 ▲0.65598.87 ▼46.9035.79 ▼16.82
Media Library /wp-admin/upload.php1,478 ▲904.47 ▲0.3196.52 ▼11.8142.47 ▼7.37
Settings /wp-admin/edit.php?post_type=wpfc-fact-checking&page=wpfc-settings1,6502.8759.6533.37
Add New /wp-admin/post-new.php?post_type=wpfc-fact-checking6,66021.60881.4144.89
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wpfc-fact-checking1,4022.0932.8529.42
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpfc-fact-checking1,5352.0833.0032.53
All Fact-checks /wp-admin/edit.php?post_type=wpfc-fact-checking1,2352.2934.5429.84

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • category_children
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-factcheck/wp-factcheck.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

wp-factcheck/wp-factcheck.php 85% from 13 tests

Analyzing the main PHP file in "WP Factcheck" version 1.1.2
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin1,158 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP139026615
CSS3747341
PO File16282178
JavaScript22024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png51.93KB18.15KB▼ 65.06%
assets/screenshot-1.png19.41KB11.57KB▼ 40.38%
assets/screenshot-3.png24.01KB5.77KB▼ 75.96%
assets/screenshot-5.png93.17KB47.84KB▼ 48.65%
assets/icon-128x128.png6.50KB3.19KB▼ 50.90%