84% magazine-columns

Code Review | Magazine Columns

WordPress plugin Magazine Columns scored84%from 54 tests.

About plugin

  • Plugin page: magazine-columns
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.3
  • WordPress version: 6.3.1
  • First release: Mar 29, 2009
  • Latest release: Aug 18, 2015
  • Number of updates: 24
  • Update frequency: every 97.2 days
  • Top authors: tinkerpriest (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /64,726 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.01ms] Passed 4 tests

Server-side resources used by Magazine Columns
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.49 ▼4.85
Dashboard /wp-admin3.32 ▲0.0248.17 ▼1.09
Posts /wp-admin/edit.php3.37 ▲0.0249.48 ▲4.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.96 ▼5.74
Media Library /wp-admin/upload.php3.24 ▲0.0238.37 ▲3.64

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Magazine Columns
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.25 ▼1.051.69 ▼0.1043.55 ▲0.43
Dashboard /wp-admin2,215 ▲244.82 ▼1.09109.29 ▲4.0941.48 ▲1.85
Posts /wp-admin/edit.php2,091 ▲22.03 ▲0.0439.88 ▲1.7835.07 ▲1.83
Add New Post /wp-admin/post-new.php1,511 ▼2317.69 ▼5.62677.45 ▲47.8449.81 ▲0.21
Media Library /wp-admin/upload.php1,393 ▲54.26 ▼0.0197.62 ▼1.4241.65 ▼1.06

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

Smoke tests 75% 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 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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/magazine-columns/magazine-columns.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Two columns) image not found
You can look at the official readme.txt

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

The main PHP script in "Magazine Columns" version 1.0.7 is automatically included on every request by WordPress
84 characters long description:
Divides your post or page content into two or more columns, like a magazine article.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected67 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1144364
JavaScript1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected