84% wp-960-grid-system-nasty-shortcodes

Code Review | WP 960 Grid System Nasty Shortcodes

WordPress plugin WP 960 Grid System Nasty Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: wp-960-grid-syste...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2012
  • Latest release: Jul 10, 2012
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: dunhakdis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,814 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.13ms] Passed 4 tests

This is a short check of server-side resources used by WP 960 Grid System Nasty Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.80 ▲2.46
Dashboard /wp-admin3.31 ▼0.0347.86 ▼16.07
Posts /wp-admin/edit.php3.36 ▲0.0151.93 ▼4.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.03 ▼17.72
Media Library /wp-admin/upload.php3.23 ▲0.0041.14 ▲1.92

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP 960 Grid System Nasty Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.18 ▼1.101.81 ▲0.2841.11 ▼0.27
Dashboard /wp-admin2,221 ▲245.83 ▲0.04103.76 ▼0.7439.48 ▼1.98
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0234.03 ▼1.8038.85 ▲1.56
Add New Post /wp-admin/post-new.php1,531 ▼023.14 ▼0.07638.93 ▼40.4347.79 ▼11.61
Media Library /wp-admin/upload.php1,394 ▼34.21 ▼0.1199.44 ▼4.4044.32 ▼0.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-960-grid-system-nasty-shortcodes/wp-960-grid-system-nasty-shortcodes.php:66

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Widget Area), #2 (Live Screen Shot)
Please take inspiration from this readme.txt

wp-960-grid-system-nasty-shortcodes/wp-960-grid-system-nasty-shortcodes.php 92% from 13 tests

The primary PHP file in "WP 960 Grid System Nasty Shortcodes" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 311 characters long)

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
Success! There were no dangerous files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1202920

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin