84% wordless-extender

Code Review | Wordless Extender

WordPress plugin Wordless Extender scored 84% from 54 tests.

About plugin

  • Plugin page: wordless-extender
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Mar 6, 2015
  • Latest release: Sep 28, 2017
  • Number of updates: 46
  • Update frequency: every 22.7 days
  • Top authors: welaika (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,214 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲0.73ms] Passed 4 tests

Analyzing server-side resources used by Wordless Extender
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1940.93 ▲0.96
Dashboard /wp-admin3.49 ▲0.1951.40 ▲1.71
Posts /wp-admin/edit.php3.54 ▲0.1953.24 ▲0.35
Add New Post /wp-admin/post-new.php6.03 ▲0.14110.89 ▲11.16
Media Library /wp-admin/upload.php3.35 ▲0.1239.45 ▼0.12
Wordless Extender /wp-admin/admin.php?page=wordless3.3434.97
Security Fixes /wp-admin/admin.php?page=security_fixes3.3436.27

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Wordless Extender: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7013.29 ▼1.391.57 ▼0.3440.16 ▼6.23
Dashboard /wp-admin2,230 ▲395.87 ▼0.03110.65 ▲10.2945.14 ▲1.68
Posts /wp-admin/edit.php2,116 ▲272.09 ▲0.0339.83 ▲3.6233.68 ▲0.93
Add New Post /wp-admin/post-new.php1,546 ▲1318.60 ▼4.68601.75 ▼52.2054.55 ▼6.26
Media Library /wp-admin/upload.php1,409 ▲184.24 ▼0.0697.40 ▼2.7941.58 ▼3.15
Wordless Extender /wp-admin/admin.php?page=wordless8302.0427.0428.48
Security Fixes /wp-admin/admin.php?page=security_fixes9932.0923.5226.40

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following items
  • 8× 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/wordless-extender/functions.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WordlessExtenderDB' not found in wp-content/plugins/wordless-extender/security.html.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'WordlessExtenderPluginManager' not found in wp-content/plugins/wordless-extender/plugins.html.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wordless-extender/wordless-extender/WordlessExtender.php on line 3
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wordless-extender/wordless-extender/WordlessExtender.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wordless-extender/wordless-extender/WordlessExtender.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WordlessExtenderConstantManager' not found in wp-content/plugins/wordless-extender/constants.html.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WordlessExtender' not found in wp-content/plugins/wordless-extender/footer.html.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: wordless, development, configuration, wp-config, htaccess...

wordless-extender/wordless-extender.php 92% from 13 tests

This is the main PHP file of "Wordless Extender" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)

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
Success! There were no dangerous files found in this plugin1,328 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP18324741,316
JavaScript14111
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.99
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods118
▷ Static methods1613.56%
▷ Public methods5546.61%
▷ Protected methods10.85%
▷ Private methods6252.54%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/welaika.16x16.png0.93KB1.02KB0.00%
assets/icon-128x128.png14.16KB5.20KB▼ 63.26%
images/welaika.png9.17KB4.70KB▼ 48.79%
assets/icon-256x256.png37.80KB13.85KB▼ 63.37%
images/welaika.32x32.png2.12KB1.62KB▼ 23.37%