84% precise-columns

Code Review | Precise Columns

WordPress plugin Precise Columns scored84%from 54 tests.

About plugin

  • Plugin page: precise-columns
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2016
  • Latest release: May 2, 2016
  • Number of updates: 12
  • Update frequency: every 2.0 days
  • Top authors: simonpedge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Precise Columns
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.30 ▼0.23
Dashboard /wp-admin3.31 ▲0.0149.97 ▼3.24
Posts /wp-admin/edit.php3.36 ▲0.0146.77 ▼5.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.42 ▼13.56
Media Library /wp-admin/upload.php3.23 ▲0.0137.84 ▲0.89

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

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

Browser metrics Passed 4 tests

Precise Columns: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.07 ▼0.481.73 ▼0.4648.42 ▲6.35
Dashboard /wp-admin2,197 ▲235.56 ▲0.0483.53 ▼5.3839.89 ▲0.29
Posts /wp-admin/edit.php2,105 ▲51.99 ▼0.0340.01 ▲0.6735.61 ▲1.15
Add New Post /wp-admin/post-new.php1,528 ▼823.09 ▲4.84648.53 ▼18.9554.84 ▼7.45
Media Library /wp-admin/upload.php1,402 ▲54.20 ▲0.0795.65 ▼7.8942.95 ▼2.95

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/precise-columns/precise-columns.php:10

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: column shortcodes, column layouts, custom columns, responsive columns

precise-columns/precise-columns.php Passed 13 tests

"Precise Columns" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
125 characters long description:
Shortcodes for more precise control of your column layouts. More control over column responsive behaviour and column margins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,207 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP189218667
JavaScript1960533
INI1104
CSS1053

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/pc_tinymce_icon.png2.62KB1.71KB▼ 34.71%