84% 4zero4

Code Review | 4zero4

WordPress plugin 4zero4 scored84%from 54 tests.

About plugin

  • Plugin page: 4zero4
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2019
  • Latest release: Mar 24, 2023
  • Number of updates: 8
  • Update frequency: every 184.8 days
  • Top authors: DevFabio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /741 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by 4zero4
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.14 ▼0.05
Dashboard /wp-admin3.31 ▲0.0145.22 ▼4.64
Posts /wp-admin/edit.php3.36 ▲0.0145.53 ▼1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.79 ▼6.92
Media Library /wp-admin/upload.php3.23 ▲0.0032.93 ▼0.74

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for 4zero4
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.141.69 ▼0.0943.84 ▲1.18
Dashboard /wp-admin2,206 ▲245.91 ▲1.00108.98 ▼8.3742.48 ▼6.27
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0536.75 ▲0.9233.54 ▼0.70
Add New Post /wp-admin/post-new.php1,528 ▼523.33 ▲0.19655.64 ▼38.8953.97 ▲0.99
Media Library /wp-admin/upload.php1,391 ▼04.22 ▼0.0393.68 ▼16.4542.26 ▼5.29

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/4zero4/4zero4.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: search, 404

4zero4/4zero4.php Passed 13 tests

"4zero4" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
Gestione pagina non trovata, effettua una ricerca cercando termini relativi alla pagina assente

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
Everything looks great! No dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13713

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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