84% side-matter

Code Review | Side Matter

WordPress plugin Side Matter scored 84% from 54 tests.

About plugin

  • Plugin page: side-matter
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Jan 27, 2013
  • Latest release: Jan 9, 2014
  • Number of updates: 60
  • Update frequency: every 5.8 days
  • Top authors: setzer (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

200+ active / 7,997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.43ms] Passed 4 tests

This is a short check of server-side resources used by Side Matter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1541.36 ▼1.50
Dashboard /wp-admin3.46 ▲0.1547.99 ▲0.68
Posts /wp-admin/edit.php3.57 ▲0.2145.98 ▲3.44
Add New Post /wp-admin/post-new.php6.06 ▲0.1783.93 ▼8.15
Media Library /wp-admin/upload.php3.38 ▲0.1534.93 ▼0.75
Side Matter /wp-admin/themes.php?page=side-matter3.4932.39

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_side-matter
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Side Matter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.42 ▼1.181.70 ▲0.1243.39 ▲3.76
Dashboard /wp-admin2,234 ▲435.02 ▲0.14114.44 ▲11.2946.08 ▲1.35
Posts /wp-admin/edit.php2,116 ▲272.33 ▲0.3136.82 ▲1.5432.09 ▼1.63
Add New Post /wp-admin/post-new.php1,374 ▼14616.65 ▼6.61571.34 ▼112.3028.95 ▼27.16
Media Library /wp-admin/upload.php1,410 ▲284.52 ▲0.2999.27 ▼5.9641.41 ▼2.95
Side Matter /wp-admin/themes.php?page=side-matter1,1892.2545.5350.04

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/side-matter/side-matter.php:45

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 30 tag instead of maximum 10
The official readme.txt is a good inspiration

side-matter/side-matter.php Passed 13 tests

Analyzing the main PHP file in "Side Matter" version 1.4
124 characters long description:
Turns footnotes into sidenotes, magically aligning each note in the sidebar next to its corresponding reference in the text.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin679 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP28733479
JavaScript23320135
CSS2172065

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity33.50
▷ Minimum class complexity4.00
▷ Maximum class complexity63.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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