84% wowpress

Code Review | WowPress

WordPress plugin WowPress scored84%from 54 tests.

About plugin

  • Plugin page: wowpress
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2015
  • Latest release: Nov 24, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: TheYeti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,234 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by WowPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.56 ▲2.97
Dashboard /wp-admin3.31 ▼0.0348.53 ▼14.39
Posts /wp-admin/edit.php3.36 ▲0.0151.82 ▼0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.29 ▼1.31
Media Library /wp-admin/upload.php3.23 ▲0.0137.79 ▼0.32

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WowPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲14214.49 ▲0.1822.58 ▲20.7642.58 ▼11.13
Dashboard /wp-admin2,215 ▲95.84 ▼0.06102.35 ▼0.0239.18 ▼1.31
Posts /wp-admin/edit.php2,097 ▼32.05 ▼0.0039.76 ▼0.5634.81 ▼1.53
Add New Post /wp-admin/post-new.php1,545 ▼923.02 ▲4.62615.42 ▼15.7855.07 ▲8.21
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0195.91 ▼3.9143.34 ▼2.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 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/wowpress/wowpress.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: plugin, world of warcraft, wow, wowhead, tooltips...

wowpress/wowpress.php Passed 13 tests

The principal PHP file in "WowPress" v. 1.0.0 is loaded by WordPress automatically on each request
79 characters long description:
Adds WordPress shortcode and href links to World of Warcraft items from Wowhead

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
Good job! No executable or dangerous file extensions detected27 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14822
JavaScript1005
CSS1100

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin