90% local-open-sans

Code Review | Local Open Sans

WordPress plugin Local Open Sans scored90%from 54 tests.

About plugin

  • Plugin page: local-open-sans
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 3, 2014
  • Latest release: Aug 4, 2014
  • Number of updates: 7
  • Update frequency: every 122.4 days
  • Top authors: ThemeBoy (57.14%)brianmiyaji (42.86%)bluedauber (28.57%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,941 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Local Open Sans
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0141.47 ▼6.45
Dashboard /wp-admin3.57 ▲0.0150.83 ▼1.85
Posts /wp-admin/edit.php3.69 ▲0.0152.87 ▼5.35
Add New Post /wp-admin/post-new.php6.15 ▲0.0193.71 ▼20.16
Media Library /wp-admin/upload.php3.50 ▲0.0140.07 ▲2.88

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Local Open Sans: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.472.05 ▲0.2545.89 ▲4.35
Dashboard /wp-admin2,195 ▲185.67 ▲0.0190.73 ▼0.4740.60 ▼7.48
Posts /wp-admin/edit.php2,103 ▲32.05 ▲0.0340.52 ▼4.5035.05 ▼2.72
Add New Post /wp-admin/post-new.php1,545 ▲1423.52 ▲0.34678.95 ▼83.2151.65 ▲1.24
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.0696.69 ▼7.5743.82 ▲0.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

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
8 plugin tags: fonts, dashboard, development, open sans, admin...

local-open-sans/local-open-sans.php Passed 13 tests

The primary PHP file in "Local Open Sans" version 1.0 is used by WordPress to initiate all plugin functionality
78 characters long description:
Replace Open Sans with a local copy to speed up admin testing and development.

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
Everything looks great! No dangerous files found in this plugin58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS10036
PHP1102722

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin