84% icebox-theme

Code Review | IceBox Theme

WordPress plugin IceBox Theme scored 84% from 54 tests.

About plugin

  • Plugin page: icebox-theme
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Apr 25, 2019
  • Number of updates: 5
  • Update frequency: every 9.2 days
  • Top authors: prrple (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 603 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by IceBox Theme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.57 ▼2.27
Dashboard /wp-admin3.32 ▲0.0144.86 ▼7.85
Posts /wp-admin/edit.php3.38 ▲0.0246.76 ▼5.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.61 ▼4.79
Media Library /wp-admin/upload.php3.25 ▲0.0233.63 ▼2.46

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

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

Browser metrics Passed 4 tests

A check of browser resources used by IceBox Theme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,568 ▼16714.36 ▲0.061.64 ▼0.4140.81 ▼3.96
Dashboard /wp-admin1,958 ▼2335.55 ▼0.3590.21 ▼23.1838.06 ▼7.33
Posts /wp-admin/edit.php2,034 ▼552.01 ▲0.0138.15 ▼2.5331.46 ▼4.13
Add New Post /wp-admin/post-new.php1,489 ▼4523.07 ▲0.10591.92 ▼72.1055.84 ▼6.49
Media Library /wp-admin/upload.php1,321 ▼674.20 ▲0.0398.85 ▼1.8539.38 ▼2.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/icebox-theme/icebox-theme.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: icebox, admin-theme, theme, admin

icebox-theme/icebox-theme.php Passed 13 tests

"IceBox Theme" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
53 characters long description:
An admin theme to freshen up your WordPress back end.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected76 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2185774
CSS2022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
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
There are no PNG files in this plugin