10% zoneboard

Code Review | Zoneboard

WordPress plugin Zoneboard scored10%from 54 tests.

About plugin

  • Plugin page: zoneboard
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2014
  • Latest release: Jun 12, 2015
  • Number of updates: 16
  • Update frequency: every 15.8 days
  • Top authors: jarednova (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,492 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Error in wp-content/plugins/zoneboard/zoneboard.php+50
    Uncaught Error: Class 'TimberHelper' not found in wp-content/plugins/zoneboard/zoneboard.php:50
    Stack trace:
    #0 wp-content/plugins/zoneboard/zoneboard.php(26): Zoneboard->load_json()
    #1 wp-content/plugins/zoneboard/zoneboard.php(129): Zoneboard->__construct()
    #2 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #3 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

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

An overview of server-side resources used by Zoneboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0049.38 ▲9.38
Dashboard /wp-admin3.31 ▲0.0044.07 ▼5.71
Posts /wp-admin/edit.php3.36 ▲0.0051.22 ▲6.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.27 ▼9.76
Media Library /wp-admin/upload.php3.23 ▲0.0035.83 ▲1.96

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Zoneboard
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.59 ▼0.821.87 ▼0.0541.12 ▼6.67
Dashboard /wp-admin2,200 ▲155.84 ▼0.07104.62 ▼0.3440.39 ▲1.40
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0639.92 ▼0.7134.96 ▼1.63
Add New Post /wp-admin/post-new.php1,542 ▲1417.98 ▼0.20609.87 ▼2.4852.41 ▲0.24
Media Library /wp-admin/upload.php1,382 ▼94.28 ▲0.07101.47 ▲0.3043.14 ▼0.47

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
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_stylesheet_directory() in wp-content/plugins/zoneboard/zoneboard.php:129

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
3 plugin tags: json, admin, dashboard

zoneboard/zoneboard.php Passed 13 tests

The primary PHP file in "Zoneboard" version 0.5 is used by WordPress to initiate all plugin functionality
33 characters long description:
Cleans up the WordPress Dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected9,223 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
CSS41,626365,567
Sass204464372,187
SVG200985
PHP22611158
JavaScript12518147
JSON31090
Markdown210046
Twig111034
Ruby1479

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity11.33
▷ Minimum class complexity3.00
▷ Maximum class complexity20.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png19.96KB1.46KB▼ 92.66%