88% 4blit

Code Review | 4blit

WordPress plugin 4blit scored 88% from 54 tests.

About plugin

  • Plugin page: 4blit
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.5
  • WordPress version: 5.9.2
  • First release: Apr 22, 2018
  • Latest release: Apr 23, 2018
  • Number of updates: 6
  • Update frequency: every 48.7 days
  • Top authors: O-Zone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 778 total downloads


Plugin footprint Passed 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.12MB] [CPU: ▼293.71ms] Passed 4 tests

A check of server-side resources used by 4blit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2059.87 ▲5.86
Dashboard /wp-admin3.61 ▲0.2143.01 ▲3.52
Posts /wp-admin/edit.php3.60 ▼0.0482.29 ▲39.50
Add New Post /wp-admin/post-new.php7.07 ▲0.1194.88 ▼1,187.89
Media Library /wp-admin/upload.php3.49 ▲0.1928.87 ▲3.67
4blit Options /wp-admin/options-general.php?page=wp_4blit_options3.4624.92

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for 4blit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,810 ▲8815.42 ▲0.236.00 ▼0.562.92 ▲0.65
Dashboard /wp-admin2,907 ▲496.22 ▲0.05123.48 ▼15.15154.74 ▼82.96
Posts /wp-admin/edit.php2,724 ▲333.27 ▲0.0464.32 ▼5.06139.35 ▼14.08
Add New Post /wp-admin/post-new.php1,819 ▲15123.28 ▲5.11425.86 ▲5.02188.85 ▲22.40
Media Library /wp-admin/upload.php1,716 ▲215.57 ▲0.11127.35 ▼8.88193.92 ▼67.22
4blit Options /wp-admin/options-general.php?page=wp_4blit_options1,1692.7791.53139.44

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/4blit/4blit-admin.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=wp_4blit_options
    • > Network (severe)
    wp-content/plugins/4blit/css/wp-4blit.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: chat, telegram, rss, feed, bot...

4blit/4blit.php 92% from 13 tests

Analyzing the main PHP file in "4blit" version 0.1.0
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,607 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PO File1294084

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.60
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods3895.00%
▷ Public methods3587.50%
▷ Protected methods00.00%
▷ Private methods512.50%
▷ Named functions2295.65%
▷ Anonymous functions14.35%
▷ Global constants00.00%
▷ Class constants39100.00%
▷ Public constants39100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin