10% space-checker

Code Review | Space Checker

WordPress plugin Space Checker scored10%from 54 tests.

About plugin

  • Plugin page: space-checker
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 16, 2015
  • Latest release: Aug 17, 2015
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: vladyslav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,012 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/space-checker/space-checker.php+314
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.63ms] Passed 4 tests

This is a short check of server-side resources used by Space Checker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.39 ▼4.68
Dashboard /wp-admin3.31 ▲0.0049.91 ▲2.50
Posts /wp-admin/edit.php3.36 ▲0.0045.53 ▼4.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.79 ▼5.54
Media Library /wp-admin/upload.php3.23 ▲0.0038.87 ▼0.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Space Checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.46 ▼0.221.68 ▼0.2141.96 ▼7.43
Dashboard /wp-admin2,209 ▲214.85 ▼1.0398.95 ▼10.8842.77 ▲2.44
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0538.72 ▼1.8034.92 ▼4.80
Add New Post /wp-admin/post-new.php1,537 ▲2323.07 ▲5.58662.65 ▼4.1555.12 ▼0.62
Media Library /wp-admin/upload.php1,379 ▼124.21 ▲0.04102.28 ▼5.9844.89 ▼0.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/space-checker/space-checker.php on line 314

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

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: space, check, readonly, used, email...

space-checker/space-checker.php 92% from 13 tests

The principal PHP file in "Space Checker" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)

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
There were no executable files found in this plugin269 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1539251
CSS13017
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin