84% presscheck

Code Review | Presscheck

WordPress plugin Presscheck scored 84% from 54 tests.

About plugin

  • Plugin page: presscheck
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 26, 2016
  • Latest release: Apr 28, 2016
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: figoliquinn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 767 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.71ms] Passed 4 tests

Analyzing server-side resources used by Presscheck
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.84 ▼12.42
Dashboard /wp-admin3.31 ▲0.0149.32 ▲1.30
Posts /wp-admin/edit.php3.36 ▲0.0148.26 ▲4.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.57 ▲7.48
Media Library /wp-admin/upload.php3.23 ▲0.0038.75 ▼0.17

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Presscheck
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.121.80 ▼0.8041.10 ▼22.46
Dashboard /wp-admin2,203 ▲155.79 ▲0.8897.93 ▼12.3737.59 ▼4.82
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0140.99 ▲4.7637.12 ▼2.04
Add New Post /wp-admin/post-new.php1,542 ▲2818.44 ▲1.07596.26 ▼91.5857.59 ▼5.29
Media Library /wp-admin/upload.php1,385 ▼04.19 ▼0.00101.58 ▼17.0644.60 ▼2.69

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/presscheck/fq_presscheck.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: updates, security, ios

presscheck/fq_presscheck.php 92% from 13 tests

The main PHP script in "Presscheck" version 1.4.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("presscheck.php" instead of "fq_presscheck.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 plugin115 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23748115

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods125.00%
▷ Protected methods00.00%
▷ Private methods375.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected