88% er-windows-8-meta-addon

Code Review | ER Windows 8 Meta Addon

WordPress plugin ER Windows 8 Meta Addon scored 88% from 53 tests.

About plugin

  • Plugin page: er-windows-8-meta...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.5.1
  • WordPress version: 5.8.1
  • First release: Mar 31, 2013
  • Latest release: Apr 2, 2013
  • Number of updates: 20
  • Update frequency: every 2.9 days
  • Top authors: erithq (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 762 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼270.58ms] Passed 4 tests

An overview of server-side resources used by ER Windows 8 Meta Addon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0335.06 ▲3.54
Dashboard /wp-admin3.09 ▲0.0443.02 ▲0.22
Posts /wp-admin/edit.php3.15 ▲0.0445.46 ▲5.16
Add New Post /wp-admin/post-new.php5.46 ▲0.0394.34 ▼1,078.62
Media Library /wp-admin/upload.php3.04 ▲0.0333.59 ▼7.47
ER Windows 8 Meta /wp-admin/options-general.php?page=er-win8-meta2.9826.55

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ER Windows 8 Meta Addon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,692 ▲8615.89 ▲0.2310.60 ▲2.2845.84 ▼2.42
Dashboard /wp-admin2,949 ▲965.99 ▼0.04152.46 ▼1.86102.83 ▲0.11
Posts /wp-admin/edit.php2,725 ▲192.72 ▲0.0367.72 ▲2.2798.46 ▲0.44
Add New Post /wp-admin/post-new.php1,604 ▼4721.73 ▲4.53260.22 ▼101.71109.96 ▲2.26
Media Library /wp-admin/upload.php1,794 ▲225.05 ▲0.06145.20 ▼10.10100.83 ▼21.29
ER Windows 8 Meta /wp-admin/options-general.php?page=er-win8-meta1,0982.1254.7671.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=er-win8-meta
    • > Notice in wp-content/plugins/er-windows-8-meta-addon/er-windows-8-meta-addon.php+113
    Trying to access array offset on value of type bool

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/er-windows-8-meta-addon/er-windows-8-meta-addon.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === er-windows-8-meta-addon === )
The official readme.txt might help

er-windows-8-meta-addon/er-windows-8-meta-addon.php Passed 13 tests

The main PHP file in "ER Windows 8 Meta Addon" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Easily upload your logo and add the meta required to show your website as tile in Windows 8 Metro.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected154 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11415154

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin