78% 4blit

Code Review | 4blit

WordPress plugin 4blit scored78%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: 6.3.1
  • 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 /1,020 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.59ms] 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.48 ▲0.0238.24 ▼2.76
Dashboard /wp-admin3.33 ▲0.0345.67 ▼0.82
Posts /wp-admin/edit.php3.30 ▼0.0640.93 ▼5.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.18 ▼9.26
Media Library /wp-admin/upload.php3.25 ▲0.0233.22 ▼0.20
4blit Options /wp-admin/options-general.php?page=wp_4blit_options3.2228.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
wp_4blit_api_key
widget_recent-posts
wp_4blit_default_publish
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for 4blit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.24 ▼1.134.71 ▲2.9844.19 ▼4.23
Dashboard /wp-admin2,217 ▲325.93 ▲0.03101.11 ▲3.4141.47 ▼1.25
Posts /wp-admin/edit.php2,119 ▲272.21 ▲0.2340.11 ▼4.0035.58 ▲0.66
Add New Post /wp-admin/post-new.php6,471 ▲4,92823.30 ▲0.12915.29 ▲249.7855.72 ▲1.38
Media Library /wp-admin/upload.php1,402 ▲144.24 ▼0.0698.87 ▲1.9843.63 ▼1.29
4blit Options /wp-admin/options-general.php?page=wp_4blit_options9101.9225.6227.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=wp_4blit_options
    • > Network (severe)
    wp-content/plugins/4blit/css/wp-4blit.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: feed, chat, channel, blog, telegram...

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

The main PHP script in "4blit" version 0.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; 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
No dangerous file extensions were detected2,607 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41975941,421
PHP8222336956
CSS2341146
PO File1294084

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
Namespaces2
Interfaces1
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods40
▷ Static methods3895.00%
▷ Public methods3587.50%
▷ Protected methods00.00%
▷ Private methods512.50%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
Constants39
▷ Global constants00.00%
▷ Class constants39100.00%
▷ Public constants39100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin