84% innovation-list-shortcode

Code Review | Innovation List Shortcode

WordPress plugin Innovation List Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: innovation-list-s...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 1, 2017
  • Latest release: Jul 1, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: bhupesh_1992 (100%)

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) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼16.06ms] Passed 4 tests

A check of server-side resources used by Innovation List Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.49 ▼8.57
Dashboard /wp-admin3.34 ▼0.0150.01 ▼18.30
Posts /wp-admin/edit.php3.39 ▲0.0348.15 ▼8.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.92 ▼28.72
Media Library /wp-admin/upload.php3.26 ▲0.0335.86 ▼3.06
All Innovations /wp-admin/edit.php?post_type=innovations3.3035.71
Add New /wp-admin/post-new.php?post_type=innovations3.3750.61

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Innovation List Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11014.39 ▼0.175.59 ▲3.7244.84 ▼1.84
Dashboard /wp-admin2,222 ▲485.56 ▼0.0285.20 ▼16.6640.37 ▼3.83
Posts /wp-admin/edit.php2,127 ▲271.98 ▼0.0435.68 ▼5.8334.40 ▼4.24
Add New Post /wp-admin/post-new.php1,549 ▲1322.97 ▲4.56680.65 ▲32.5655.71 ▼6.50
Media Library /wp-admin/upload.php1,430 ▲334.21 ▼0.0396.61 ▼3.5044.09 ▼3.80
All Innovations /wp-admin/edit.php?post_type=innovations1,1031.9443.7538.64
Add New /wp-admin/post-new.php?post_type=innovations2,2337.74164.1967.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: slider, theme, innovation, shortcode, popup

innovation-list-shortcode/innovation.php 85% from 13 tests

The principal PHP file in "Innovation List Shortcode" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("innovation-list-shortcode.php" instead of "innovation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,331 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44699161,953
CSS41941277
PHP1832101

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.11
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
basic/img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
basic/innovation-default.png27.41KB12.05KB▼ 56.04%
basic/img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%
basic/img/grabbing.png0.11KB0.14KB0.00%
basic/img/glyphicons-halflings-green.png15.37KB8.95KB▼ 41.75%