73% express-it

Code Review | Express It

WordPress plugin Express It scored73%from 54 tests.

About plugin

  • Plugin page: express-it
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2015
  • Latest release: Mar 15, 2019
  • Number of updates: 16
  • Update frequency: every 85.8 days
  • Top authors: ahsanic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,299 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Express It
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.51 ▼0.14
Dashboard /wp-admin3.32 ▲0.0150.33 ▼11.63
Posts /wp-admin/edit.php3.37 ▲0.0157.55 ▲6.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.64 ▼4.15
Media Library /wp-admin/upload.php3.24 ▲0.0137.57 ▼1.69
Express It /wp-admin/options-general.php?page=express-it3.2128.55

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_expressit_likes_counter
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Express It
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17113.66 ▼0.9513.00 ▲11.2540.80 ▼2.60
Dashboard /wp-admin2,222 ▲275.79 ▲0.7699.21 ▼16.9939.59 ▼1.94
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0133.28 ▼3.6934.35 ▲0.86
Add New Post /wp-admin/post-new.php1,548 ▼623.18 ▲4.79656.20 ▼14.9654.94 ▼13.52
Media Library /wp-admin/upload.php1,401 ▲14.18 ▼0.0599.75 ▼2.0145.09 ▼3.44
Express It /wp-admin/options-general.php?page=express-it9072.0123.1630.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_expressit_likes_counter
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/express-it/inc/class-expressit-main.php
    • > /wp-content/plugins/express-it/inc/class-expressit-data-setup.php
    • > /wp-content/plugins/express-it/express-it.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt might help

express-it/express-it.php 77% from 13 tests

The main PHP script in "Express It" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
  • Domain Path: Please prefix the domain path with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin598 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP360173339
JavaScript237123259

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity20.00
▷ Minimum class complexity2.00
▷ Maximum class complexity38.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png23.35KB11.71KB▼ 49.87%
screenshot-2.png2.52KB1.99KB▼ 21.12%