83% wip-incoming-lite

Code Review | WIP Incoming Lite

WordPress plugin WIP Incoming Lite scored 83% from 54 tests.

About plugin

  • Plugin page: wip-incoming-lite
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 23, 2016
  • Latest release: Jun 16, 2023
  • Number of updates: 20
  • Update frequency: every 130.6 days
  • Top authors: alexvtn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 5,519 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.97ms] Passed 4 tests

An overview of server-side resources used by WIP Incoming Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.43 ▼4.62
Dashboard /wp-admin3.35 ▲0.0544.11 ▼2.61
Posts /wp-admin/edit.php3.46 ▲0.1150.24 ▲0.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.79 ▼25.38
Media Library /wp-admin/upload.php3.27 ▲0.0436.09 ▲2.70
WIP Incoming /wp-admin/admin.php?page=wip_incoming_lite_panel4.4947.92

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WIP Incoming Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.66 ▼0.711.62 ▼0.1033.56 ▼10.26
Dashboard /wp-admin2,247 ▲625.84 ▲0.96103.70 ▼12.3980.36 ▲34.83
Posts /wp-admin/edit.php2,127 ▲351.99 ▼0.0441.07 ▼0.4140.74 ▲5.33
Add New Post /wp-admin/post-new.php1,565 ▲2318.19 ▼6.40670.85 ▲13.6660.89 ▲6.41
Media Library /wp-admin/upload.php1,426 ▲354.23 ▲0.0398.49 ▼4.0580.10 ▲36.95
WIP Incoming /wp-admin/admin.php?page=wip_incoming_lite_panel6,8367.08161.37187.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wip-incoming-lite/core/admin/panel.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wip-incoming-lite/templates/layout.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wip-incoming-lite/init.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Screenshots: These screenshots require images: #1 (The default coming soon page), #2 (Alternative coming soon page.), #3 (Option panel)
You can look at the official readme.txt

wip-incoming-lite/init.php 85% from 13 tests

The main file in "WIP Incoming Lite" v. 1.1.0 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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 323 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wip-incoming-lite.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin21,322 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JSON22016,291
CSS82451071,962
PHP67241181,150
JavaScript6203317963
SVG100655
PO File17821,645301

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity34.67
▷ Minimum class complexity4.00
▷ Maximum class complexity89.00
Average method complexity6.32
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
36 compressed PNG files occupy 1.18MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/patterns/worn_dots.png19.29KB20.53KB0.00%
assets/images/patterns/purty_wood.png217.15KB153.39KB▼ 29.36%
assets/images/patterns/xv.png36.44KB39.40KB0.00%
assets/images/patterns/foggy_birds.png2.54KB2.59KB0.00%
assets/images/patterns/tileable_wood_texture.png167.47KB119.42KB▼ 28.69%