84% dyslexic-fonts

Code Review | Dyslexic Fonts

WordPress plugin Dyslexic Fonts scored84%from 54 tests.

About plugin

  • Plugin page: dyslexic-fonts
  • Plugin version: 0.18
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 12, 2019
  • Latest release: Nov 5, 2023
  • Number of updates: 10
  • Update frequency: every 160.7 days
  • Top authors: keith_wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,020 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲1.67ms] Passed 4 tests

Analyzing server-side resources used by Dyslexic Fonts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.80 ▲7.15
Dashboard /wp-admin3.33 ▲0.0244.89 ▲2.03
Posts /wp-admin/edit.php3.38 ▲0.0248.75 ▲6.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.75 ▼1.38
Media Library /wp-admin/upload.php3.25 ▲0.0235.42 ▼0.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dyslexic Fonts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.35 ▼0.281.80 ▲0.1139.42 ▼2.39
Dashboard /wp-admin2,195 ▲145.62 ▼0.1091.48 ▼38.1739.19 ▼7.01
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0639.48 ▲3.2835.32 ▲3.18
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▲0.02690.44 ▲3.2853.57 ▲4.93
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0696.07 ▼2.1640.67 ▼1.77

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

Smoke tests 75% from 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 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dyslexic-fonts/dyslexic-fonts.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

dyslexic-fonts/dyslexic-fonts.php 92% from 13 tests

The entry point to "Dyslexic Fonts" version 0.18 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin83 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1181152
CSS12031

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity2.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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