94% 1180px-shortcodes

Code Review | 1180px Shortcodes

WordPress plugin 1180px Shortcodes scored 94% from 54 tests.

About plugin

  • Plugin page: 1180px-shortcodes
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.0
  • WordPress version: 5.9.2
  • First release: Apr 6, 2013
  • Latest release: Sep 7, 2014
  • Number of updates: 12
  • Update frequency: every 43.3 days
  • Top authors: chrisblackwell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,496 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by 1180px Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.68 ▲0.50
Dashboard /wp-admin3.42 ▲0.0137.15 ▼5.10
Posts /wp-admin/edit.php3.65 ▲0.0136.74 ▼4.68
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.38 ▼1,220.60
Media Library /wp-admin/upload.php3.30 ▲0.0123.71 ▼3.14

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for 1180px Shortcodes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲4915.66 ▼0.056.10 ▲0.462.21 ▼0.08
Dashboard /wp-admin2,881 ▲236.15 ▼0.03115.09 ▼21.59154.83 ▼10.20
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0163.12 ▲0.68143.58 ▼1.37
Add New Post /wp-admin/post-new.php1,661 ▼017.11 ▲0.39427.53 ▲28.17149.68 ▼9.06
Media Library /wp-admin/upload.php1,698 ▼05.45 ▼0.08147.49 ▼2.82187.74 ▼4.45

Uninstaller [IO: ✅] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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_action() in wp-content/plugins/1180px-shortcodes/1180px.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: 1180px, shortcodes, css

1180px-shortcodes/1180px.php 92% from 13 tests

This is the main PHP file of "1180px Shortcodes" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("1180px-shortcodes.php" instead of "1180px.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin207 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS181798
PHP13111173
JavaScript1111336

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin