90% opensans-ftw

Code Review | OpenSans FTW

WordPress plugin OpenSans FTW scored90%from 54 tests.

About plugin

  • Plugin page: opensans-ftw
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 18, 2016
  • Latest release: Aug 17, 2018
  • Number of updates: 18
  • Update frequency: every 40.5 days
  • Top authors: GeorgeJipa (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /4,155 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 gracefully, with no errors

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

Server-side resources used by OpenSans FTW
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.81 ▲2.60
Dashboard /wp-admin3.32 ▲0.0145.66 ▲0.42
Posts /wp-admin/edit.php3.37 ▲0.0145.16 ▼2.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.80 ▼17.81
Media Library /wp-admin/upload.php3.24 ▲0.0133.48 ▼4.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for OpenSans FTW
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.25 ▼1.134.16 ▲2.5164.03 ▲21.46
Dashboard /wp-admin2,207 ▲225.79 ▼0.03104.27 ▲3.8749.19 ▲6.79
Posts /wp-admin/edit.php2,099 ▲102.03 ▲0.0038.74 ▼0.1140.06 ▲4.20
Add New Post /wp-admin/post-new.php1,521 ▲223.11 ▼0.16686.31 ▲23.1970.29 ▲24.06
Media Library /wp-admin/upload.php1,389 ▲44.25 ▲0.0797.06 ▲1.9141.66 ▲0.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: opensans wordpress 46, opensans, open sans, font, dashboard font

opensans-ftw/opensans-ftw.php Passed 13 tests

"OpenSans FTW" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Just a simple plugin that brings back the old Open Sans font to WordPress 4.6+ dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin134 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2235168
PO File351366

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin