94% wow-entrance-effects-wee

Code Review | WOW Entrance Effects (WEE!)

WordPress plugin WOW Entrance Effects (WEE!) scored 94% from 53 tests.

About plugin

  • Plugin page: wow-entrance-effe...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 25, 2015
  • Latest release: Jun 25, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: darkosxrc (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 1,257 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼274.04ms] Passed 4 tests

Server-side resources used by WOW Entrance Effects (WEE!)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1434.74 ▲11.85
Dashboard /wp-admin3.08 ▲0.0341.47 ▼2.58
Posts /wp-admin/edit.php3.13 ▲0.0337.38 ▼7.29
Add New Post /wp-admin/post-new.php5.45 ▲0.0294.08 ▼1,078.88
Media Library /wp-admin/upload.php3.03 ▲0.0233.62 ▼7.40
WEE! Generator /wp-admin/options-general.php?page=wee-generate3.0027.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WOW Entrance Effects (WEE!)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,690 ▲10816.28 ▲0.3912.72 ▲3.6953.31 ▲6.15
Dashboard /wp-admin2,939 ▲836.17 ▲0.31145.12 ▼12.78108.71 ▲14.37
Posts /wp-admin/edit.php2,718 ▲122.70 ▲0.0164.67 ▼4.1485.16 ▼10.18
Add New Post /wp-admin/post-new.php1,879 ▲31515.90 ▼0.90388.85 ▲32.21108.65 ▲2.87
Media Library /wp-admin/upload.php1,781 ▲95.01 ▼0.02151.21 ▼8.58112.30 ▼7.36
WEE! Generator /wp-admin/options-general.php?page=wee-generate1,6432.3659.6991.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 | 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wow-entrance-effects-wee/wee.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

wow-entrance-effects-wee/wee.php 92% from 13 tests

The primary PHP file in "WOW Entrance Effects (WEE!)" version 0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wow-entrance-effects-wee.php" instead of "wee.php")

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
Everything looks great! No dangerous files found in this plugin366 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP110424361
CSS2053
JavaScript2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin