89% tiny-grid

Code Review | Tiny Grid

WordPress plugin Tiny Grid scored89%from 54 tests.

About plugin

  • Plugin page: tiny-grid
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 14, 2015
  • Latest release: Sep 14, 2015
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: callofsorrow (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /5,117 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
Install script ran successfully

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

Analyzing server-side resources used by Tiny Grid
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.65 ▼2.60
Dashboard /wp-admin3.32 ▼0.0348.23 ▼19.10
Posts /wp-admin/edit.php3.37 ▲0.0152.05 ▲4.75
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.99 ▼31.59
Media Library /wp-admin/upload.php3.24 ▲0.0139.17 ▲5.89
Tiny Grid /wp-admin/options-general.php?page=tiny-grid3.2134.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Tiny Grid
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.23 ▼1.521.74 ▼0.1042.34 ▼1.38
Dashboard /wp-admin2,212 ▲245.86 ▲0.98107.03 ▼13.2541.52 ▼3.39
Posts /wp-admin/edit.php2,095 ▲32.01 ▼0.0339.54 ▲3.0234.62 ▼4.17
Add New Post /wp-admin/post-new.php1,538 ▲1923.27 ▼0.07670.69 ▲18.3048.84 ▼14.42
Media Library /wp-admin/upload.php1,394 ▲64.13 ▼0.10104.83 ▼1.9444.15 ▲3.40
Tiny Grid /wp-admin/options-general.php?page=tiny-grid8312.0329.2328.31

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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)
Good news, no errors were detected

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

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 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Here you can see the new tinymce buttons)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === tiny-grid === )
The official readme.txt is a good inspiration

tiny-grid/tiny-grid.php Passed 13 tests

This is the main PHP file of "Tiny Grid" version 0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Adds buttons to the TinyMCE Editor to use the bootstrap grid system

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
No dangerous file extensions were detected421 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG100158
JavaScript2290121
PHP13310109
Markdown112024
CSS4009

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions11
▷ Named functions11100.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 images were found in this plugin