84% newspaper-columns

Code Review | Newspaper Columns

WordPress plugin Newspaper Columns scored84%from 54 tests.

About plugin

  • Plugin page: newspaper-columns
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2021
  • Latest release: Dec 23, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: fortepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /400 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Newspaper Columns
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.20 ▼5.36
Dashboard /wp-admin3.32 ▲0.0147.28 ▼2.83
Posts /wp-admin/edit.php3.37 ▲0.0146.02 ▼3.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.47 ▼3.51
Media Library /wp-admin/upload.php3.24 ▲0.0136.21 ▲3.80

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Newspaper Columns
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.20 ▼1.561.76 ▼0.1340.57 ▲0.75
Dashboard /wp-admin2,206 ▲184.87 ▼0.01108.93 ▲5.9440.03 ▼0.65
Posts /wp-admin/edit.php2,089 ▲32.04 ▼0.0240.24 ▲0.7234.08 ▼1.34
Add New Post /wp-admin/post-new.php6,199 ▲4,66519.24 ▼3.95925.35 ▲244.6959.31 ▲3.45
Media Library /wp-admin/upload.php1,391 ▼04.16 ▲0.0296.77 ▼2.6341.56 ▼8.68

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newspaper-columns/newspaper-columns.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: block

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

The primary PHP file in "Newspaper Columns" version 1.0.0 is used by WordPress to initiate all plugin functionality
72 characters long description:
Set the number of columns and watch the text flow, just like a newspaper

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected124 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4147168
JSON11028
Sass21021
PHP21226
CSS2101

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.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin