84% wpdemowolf

Code Review | WPDemoWolf

WordPress plugin WPDemoWolf scored84%from 54 tests.

About plugin

  • Plugin page: wpdemowolf
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 2, 2015
  • Latest release: Sep 15, 2016
  • Number of updates: 17
  • Update frequency: every 42.9 days
  • Top authors: mainehost (82.35%)godthor (23.53%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /599 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 successfully, without throwing any errors or notices

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

Server-side resources used by WPDemoWolf
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.31 ▲2.61
Dashboard /wp-admin3.32 ▲0.0245.34 ▼4.67
Posts /wp-admin/edit.php3.37 ▲0.0247.91 ▼5.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.67 ▼17.11
Media Library /wp-admin/upload.php3.24 ▲0.0137.24 ▲1.24
WPDemoWolf /wp-admin/options-general.php?page=wpdemowolf3.2132.89

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WPDemoWolf
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.021.73 ▼0.2440.11 ▼1.21
Dashboard /wp-admin2,210 ▲194.87 ▼0.01106.72 ▼0.9541.08 ▼2.46
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0137.40 ▲0.1932.42 ▼1.46
Add New Post /wp-admin/post-new.php1,517 ▼1117.82 ▼0.33710.40 ▲52.1062.39 ▲2.64
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.08105.62 ▲7.3745.67 ▲4.46
WPDemoWolf /wp-admin/options-general.php?page=wpdemowolf8402.0227.4730.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wpdemowolf/wpdw.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: page, demowolf, post, shortcode

wpdemowolf/wpdw.php 92% from 13 tests

The main file in "WPDemoWolf" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpdemowolf.php" instead of "wpdw.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected83 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1203183

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.23MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png129.45KB37.50KB▼ 71.03%
screenshot-2.png110.03KB41.13KB▼ 62.62%