78% foundation-columns

Code Review | Foundation Columns

WordPress plugin Foundation Columns scored78%from 54 tests.

About plugin

  • Plugin page: foundation-columns
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.2
  • WordPress version: 6.3.1
  • First release: May 26, 2014
  • Latest release: May 8, 2015
  • Number of updates: 25
  • Update frequency: every 39.8 days
  • Top authors: tormorten (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /2,529 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.87ms] Passed 4 tests

Server-side resources used by Foundation Columns
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0549.80 ▲5.47
Dashboard /wp-admin3.35 ▲0.0151.06 ▼21.20
Posts /wp-admin/edit.php3.47 ▲0.1146.70 ▼1.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.84 ▼14.41
Media Library /wp-admin/upload.php3.28 ▲0.0538.73 ▲1.27

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Foundation Columns
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.84 ▲0.671.95 ▲0.0741.94 ▼4.00
Dashboard /wp-admin2,224 ▲214.84 ▼1.04104.46 ▼12.8141.28 ▼4.36
Posts /wp-admin/edit.php2,103 ▲62.04 ▲0.0234.47 ▼2.7036.90 ▲1.50
Add New Post /wp-admin/post-new.php1,529 ▲317.50 ▼5.96684.87 ▲23.5959.07 ▲6.64
Media Library /wp-admin/upload.php1,403 ▲124.34 ▲0.1098.92 ▼12.9543.24 ▼3.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/foundation-columns/foundation-columns.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: mce_locale in wp-content/plugins/foundation-columns/localization.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/foundation-columns/localization.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Zurb icon indicates you are ready to use Foundation Columns.), #2 (The result after added columns.)
You can look at the official readme.txt

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

The entry point to "Foundation Columns" version 0.8 is a PHP file that has certain tags in its header comment area
64 characters long description:
Use the Zurb Foundation Grid System in WordPress posts and pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected495 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3486247
PHP278182208
PO File1121240

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods19
▷ Static methods15.26%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png146.52KB45.59KB▼ 68.89%
assets/img/foundation_columns.png7.92KB3.96KB▼ 49.96%
assets/img/foundation_columns_20x20.png3.40KB1.19KB▼ 65.04%
screenshot-2.png58.66KB16.03KB▼ 72.67%