84% 1180px-shortcodes

Code Review | 1180px Shortcodes

WordPress plugin 1180px Shortcodes scored84%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: 6.3.1
  • 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,772 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 gracefully, with no errors

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

An overview of server-side resources used by 1180px Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.85 ▼2.22
Dashboard /wp-admin3.31 ▲0.0150.39 ▼1.53
Posts /wp-admin/edit.php3.36 ▲0.0151.25 ▲1.86
Add New Post /wp-admin/post-new.php5.90 ▲0.01110.38 ▲12.71
Media Library /wp-admin/upload.php3.24 ▲0.0136.52 ▲2.80

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

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

Browser metrics Passed 4 tests

1180px Shortcodes: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.27 ▼0.951.86 ▼0.6442.28 ▲0.28
Dashboard /wp-admin2,209 ▲274.87 ▼0.9997.01 ▼6.3041.98 ▲0.04
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0841.30 ▲1.9637.58 ▲1.09
Add New Post /wp-admin/post-new.php1,542 ▲2818.33 ▲0.70669.18 ▲19.6161.92 ▲9.75
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0199.21 ▼6.3244.01 ▲1.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 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 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: shortcodes, 1180px, css

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

The main file in "1180px Shortcodes" v. 1.1.1 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:
  • 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected207 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS181798
PHP13111173
JavaScript1111336

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected