89% seriously-simple-speakers

Code Review | Seriously Simple Speakers

WordPress plugin Seriously Simple Speakers scored89%from 54 tests.

About plugin

  • Plugin page: seriously-simple-...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2016
  • Latest release: Apr 27, 2023
  • Number of updates: 14
  • Update frequency: every 178.1 days
  • Top authors: psykro (57.14%)hlashbrooke (35.71%)zahardoc (21.43%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /12,997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.23ms] Passed 4 tests

Analyzing server-side resources used by Seriously Simple Speakers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.90 ▲2.48
Dashboard /wp-admin3.32 ▼0.0350.64 ▼11.15
Posts /wp-admin/edit.php3.37 ▲0.0148.36 ▲3.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.91 ▼7.60
Media Library /wp-admin/upload.php3.24 ▲0.0138.69 ▲5.62

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Seriously Simple Speakers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.411.60 ▼0.0440.11 ▲1.52
Dashboard /wp-admin2,206 ▲214.85 ▼0.97107.56 ▼16.5437.70 ▼18.09
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0238.61 ▲2.2535.76 ▲2.80
Add New Post /wp-admin/post-new.php1,426 ▼8818.12 ▲0.59638.89 ▲29.0655.56 ▲7.67
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0395.90 ▼3.1442.78 ▼0.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

seriously-simple-speakers/seriously-simple-speakers.php 92% from 13 tests

The main PHP script in "Seriously Simple Speakers" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

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
There were no executable files found in this plugin197 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP578143197

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.50
▷ Minimum class complexity7.00
▷ Maximum class complexity16.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods327.27%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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
There are no PNG files in this plugin