83% wp-plugin-information-shortcode

Code Review | WordPress plugin information shortcode

WordPress plugin WordPress plugin information shortcode scored83%from 54 tests.

About plugin

  • Plugin page: wp-plugin-informa...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Jul 9, 2016
  • Latest release: Sep 15, 2018
  • Number of updates: 7
  • Update frequency: every 114.0 days
  • Top authors: f13dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /615 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by WordPress plugin information shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.16 ▼8.60
Dashboard /wp-admin3.33 ▲0.0249.84 ▼2.56
Posts /wp-admin/edit.php3.38 ▲0.0252.11 ▲1.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.54 ▼1.73
Media Library /wp-admin/upload.php3.25 ▲0.0239.88 ▲6.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress plugin information shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.28 ▼0.472.27 ▲0.5340.86 ▼2.87
Dashboard /wp-admin2,198 ▲185.66 ▲0.0290.13 ▲2.9638.30 ▼6.92
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0139.88 ▼0.9636.80 ▼1.87
Add New Post /wp-admin/post-new.php1,546 ▲1521.18 ▼2.29686.48 ▼1.8444.30 ▼13.11
Media Library /wp-admin/upload.php1,397 ▼04.30 ▼0.0098.08 ▼5.2841.84 ▼2.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-plugin-information-shortcode/wp-wordpress-plugin-information-shortcode.php:90

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 90% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-plugin-information-shortcode === )
  • Screenshots: Please add an image for screenshot #1 (The results of adding [wpplugin slug="akismet"] to a blog post.)
The official readme.txt might help

wp-plugin-information-shortcode/wp-wordpress-plugin-information-shortcode.php 92% from 13 tests

The main PHP file in "WordPress plugin information shortcode" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-plugin-information-shortcode.php" instead of "wp-wordpress-plugin-information-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin264 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12141132
CSS1111108
Markdown111024

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.67MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/default_icon.png4.52KB4.82KB0.00%
screenshot-1.png649.90KB153.81KB▼ 76.33%
img/star-half.png1.70KB1.26KB▼ 25.75%
img/default_banner.png27.83KB13.58KB▼ 51.21%
img/star-full.png1.66KB1.14KB▼ 31.03%