94% fakeblock

Code Review | Fakeblock

WordPress plugin Fakeblock scored 94% from 54 tests.

About plugin

  • Plugin page: fakeblock
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.1
  • WordPress version: 5.9.2
  • First release: Mar 29, 2019
  • Latest release: Mar 29, 2019
  • Number of updates: 3
  • Update frequency: every 6.3 days
  • Top authors: thomasplevy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 510 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼294.30ms] Passed 4 tests

Analyzing server-side resources used by Fakeblock
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1156.28 ▲0.08
Dashboard /wp-admin3.46 ▲0.0634.55 ▲1.13
Posts /wp-admin/edit.php3.69 ▲0.0541.14 ▲3.08
Add New Post /wp-admin/post-new.php6.93 ▼0.04100.28 ▼1,181.49
Media Library /wp-admin/upload.php3.34 ▲0.0537.58 ▲12.46

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Fakeblock: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,931 ▲18416.35 ▲0.7310.08 ▲4.441.63 ▼0.93
Dashboard /wp-admin2,908 ▲476.10 ▼0.07117.34 ▼39.70170.98 ▲3.91
Posts /wp-admin/edit.php2,708 ▲203.24 ▼0.0164.35 ▼4.22142.55 ▼4.63
Add New Post /wp-admin/post-new.php1,674 ▲815.80 ▼5.25450.41 ▲1.72212.15 ▲44.79
Media Library /wp-admin/upload.php1,715 ▲205.52 ▼0.00160.44 ▲15.21219.70 ▲23.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function fkblk_get() in wp-content/plugins/fakeblock/includes/views/blocked.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: privacy, anti-piracy

fakeblock/fakeblock.php Passed 13 tests

Analyzing the main PHP file in "Fakeblock" version 1.0.0
125 characters long description:
With less than 10 active installs, Fakeblock is the OC WordPress community's privacy software plugin that's also anti-piracy.

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 plugin644 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.00
▷ Minimum class complexity4.00
▷ Maximum class complexity8.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
▷ Static methods15.56%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.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
There are no PNG files in this plugin