84% wp-alex

Code Review | Plugin Name: WP Alex

WordPress plugin Plugin Name: WP Alex scored84%from 54 tests.

About plugin

  • Plugin page: wp-alex
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Oct 1, 2015
  • Latest release: Oct 1, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ejdanderson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /611 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
Install script ran successfully

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

Analyzing server-side resources used by Plugin Name: WP Alex
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.80 ▼7.20
Dashboard /wp-admin3.31 ▼0.0451.50 ▼12.24
Posts /wp-admin/edit.php3.36 ▲0.0051.25 ▲0.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.43 ▼9.82
Media Library /wp-admin/upload.php3.23 ▲0.0038.93 ▲1.06

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Name: WP Alex
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.25 ▼1.134.98 ▲3.2242.60 ▼2.37
Dashboard /wp-admin2,221 ▲185.86 ▼0.04103.44 ▼6.6940.68 ▲2.16
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0136.13 ▼0.9529.40 ▼4.95
Add New Post /wp-admin/post-new.php1,550 ▲1023.34 ▲5.28629.41 ▲7.8470.53 ▲15.18
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.12114.45 ▲2.1953.23 ▲4.58

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-alex/wp-alex.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (WP Alex in action.)
  • Plugin Name: You should set the name of your plugin on the first line ( === Plugin Name: WP Alex === )
Please take inspiration from this readme.txt

wp-alex/wp-alex.php Passed 13 tests

Analyzing the main PHP file in "Plugin Name: WP Alex" version 1.0
99 characters long description:
WP Alex is a plugin which will integrate [Alex](http://alexjs.com) into WordPress's TinyMCE editor.

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
There were no executable files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1196

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.57KB13.62KB▼ 56.85%