94% the-void

Code Review | The Void

WordPress plugin The Void scored 94% from 54 tests.

About plugin

  • Plugin page: the-void
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 5.8.1
  • First release: Nov 19, 2014
  • Latest release: Jul 20, 2015
  • Number of updates: 5
  • Update frequency: every 49.0 days
  • Top authors: alancf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 723 total downloads

Benchmarks

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: ▼644.76ms] Passed 4 tests

An overview of server-side resources used by The Void
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0333.30 ▼4.02
Dashboard /wp-admin3.09 ▲0.0338.84 ▼10.49
Posts /wp-admin/edit.php3.14 ▲0.0348.74 ▲3.24
Add New Post /wp-admin/post-new.php5.45 ▲0.0194.02 ▼2,567.78
Media Library /wp-admin/upload.php3.03 ▲0.0334.33 ▲6.72
The Void /wp-admin/tools.php?page=the_void3.0029.61

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

The Void: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,688 ▲9216.44 ▲0.939.88 ▲0.3045.89 ▼4.87
Dashboard /wp-admin2,979 ▲825.93 ▼0.15157.44 ▲12.73112.51 ▲8.85
Posts /wp-admin/edit.php2,748 ▲92.72 ▲0.0268.60 ▼1.2593.51 ▲5.45
Add New Post /wp-admin/post-new.php1,622 ▼6114.02 ▼4.76325.95 ▼33.76100.08 ▼10.94
Media Library /wp-admin/upload.php1,816 ▲65.06 ▲0.05150.16 ▼11.41119.18 ▲7.52
The Void /wp-admin/tools.php?page=the_void1,0672.1060.1670.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no 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
Even though no errors were found, 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 fix 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/the-void/the-void.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: delete posts, remove content, remove posts, delete content

the-void/the-void.php Passed 13 tests

The main PHP file in "The Void" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
30 characters long description:
Removes all content in 1 click

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin234 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2628135
JavaScript13052
CSS18047

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.50
▷ Minimum class complexity4.00
▷ Maximum class complexity9.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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