90% fortify

Code Review | Fortify

WordPress plugin Fortify scored 90% from 54 tests.

About plugin

  • Plugin page: fortify
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 19, 2021
  • Latest release: Dec 19, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: webvitaly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 652 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Fortify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.21 ▲2.17
Dashboard /wp-admin3.32 ▲0.0245.23 ▼1.07
Posts /wp-admin/edit.php3.37 ▲0.0247.72 ▼2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.88 ▼13.35
Media Library /wp-admin/upload.php3.24 ▲0.0136.08 ▲0.88
Fortify /wp-admin/options-general.php?page=fortify3.2129.74

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Fortify
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.69 ▼0.521.58 ▼0.1041.00 ▼2.25
Dashboard /wp-admin2,210 ▲225.02 ▲0.12104.46 ▼11.8938.15 ▼6.57
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0039.70 ▲5.0434.77 ▲4.43
Add New Post /wp-admin/post-new.php1,531 ▼323.53 ▲0.46630.15 ▼35.4155.91 ▲5.74
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0193.72 ▼2.3141.03 ▼0.09
Fortify /wp-admin/options-general.php?page=fortify8002.0523.8726.59

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • fortify_settings
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

fortify/fortify.php Passed 13 tests

The primary PHP file in "Fortify" version 1.0 is used by WordPress to initiate all plugin functionality
32 characters long description:
No spam in comments. No captcha.

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
Good job! No executable or dangerous file extensions detected291 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions19100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
No PNG images were found in this plugin