94% 4zero4

Code Review | 4zero4

WordPress plugin 4zero4 scored 94% 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-5.9
  • WordPress version: 5.9.2
  • First release: Mar 7, 2019
  • Latest release: Jan 24, 2022
  • Number of updates: 6
  • Update frequency: every 175.7 days
  • Top authors: DevFabio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 477 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼289.42ms] Passed 4 tests

Analyzing server-side resources used by 4zero4
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0170.13 ▲19.80
Dashboard /wp-admin3.41 ▲0.0133.64 ▼2.49
Posts /wp-admin/edit.php3.65 ▲0.0140.17 ▲3.15
Add New Post /wp-admin/post-new.php6.89 ▼0.0995.70 ▼1,158.88
Media Library /wp-admin/upload.php3.30 ▲0.0024.00 ▲0.56

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

4zero4: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1916.01 ▲0.335.78 ▼0.202.70 ▼0.08
Dashboard /wp-admin2,895 ▲376.13 ▼0.09117.11 ▼15.66160.80 ▲2.10
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.0068.45 ▲3.36146.48 ▲2.07
Add New Post /wp-admin/post-new.php1,661 ▼2915.56 ▼5.56431.63 ▼17.01160.23 ▲0.78
Media Library /wp-admin/upload.php1,698 ▼05.47 ▲0.01147.88 ▲5.06191.61 ▲0.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: 404, search

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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There were not PNG files found in your plugin