84% anywhere-post-list-shortcode

Code Review | Anywhere List Shortcode

WordPress plugin Anywhere List Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: anywhere-post-lis...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.9.5
  • WordPress version: 6.3.1
  • First release: Jun 10, 2014
  • Latest release: Apr 8, 2018
  • Number of updates: 38
  • Update frequency: every 36.8 days
  • Top authors: marushu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,488 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Anywhere List Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.68 ▼1.11
Dashboard /wp-admin3.32 ▲0.0144.63 ▼2.87
Posts /wp-admin/edit.php3.37 ▲0.0148.87 ▲2.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.65 ▼1.42
Media Library /wp-admin/upload.php3.25 ▲0.0132.72 ▼2.94

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Anywhere List Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.33 ▼0.381.88 ▲0.3037.37 ▲0.19
Dashboard /wp-admin2,195 ▲205.56 ▼0.0292.40 ▼8.2538.65 ▼7.97
Posts /wp-admin/edit.php2,100 ▼02.04 ▼0.0839.09 ▲1.1435.30 ▼0.60
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.03676.67 ▼19.8858.65 ▼4.51
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.0894.00 ▼5.5344.29 ▼0.14

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/anywhere-post-list-shortcode/anywhere-list-shortcode.php:146

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
2 plugin tags: post type, post

anywhere-post-list-shortcode/anywhere-list-shortcode.php 85% from 13 tests

The main PHP script in "Anywhere List Shortcode" version 0.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("anywhere-post-list-shortcode.php" instead of "anywhere-list-shortcode.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 219 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1342194

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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
PNG images were not found in this plugin