83% ram108-typo

Code Review | Web Typography Standards

WordPress plugin Web Typography Standards scored83%from 54 tests.

About plugin

  • Plugin page: ram108-typo
  • Plugin version: 0.6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.3-5.9
  • WordPress version: 6.3.1
  • First release: Jan 19, 2014
  • Latest release: Feb 4, 2022
  • Number of updates: 48
  • Update frequency: every 61.2 days
  • Top authors: mrauhu (77.08%)ram108 (25%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /7,264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.55MB] [CPU: ▼0.70ms] Passed 4 tests

Server-side resources used by Web Typography Standards
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.6052.81 ▲11.45
Dashboard /wp-admin3.89 ▲0.5847.51 ▼0.60
Posts /wp-admin/edit.php3.96 ▲0.6052.69 ▲4.32
Add New Post /wp-admin/post-new.php6.41 ▲0.5282.14 ▼4.58
Media Library /wp-admin/upload.php3.75 ▲0.5235.90 ▼1.94

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Web Typography Standards: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.411.85 ▲0.1145.13 ▼0.81
Dashboard /wp-admin2,195 ▲185.63 ▼0.0481.06 ▼19.8337.15 ▼6.90
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0334.65 ▼4.0131.64 ▼4.04
Add New Post /wp-admin/post-new.php1,526 ▼323.27 ▲0.12657.46 ▲2.7455.74 ▼2.27
Media Library /wp-admin/upload.php1,403 ▲64.15 ▼0.0293.36 ▼7.0841.33 ▼4.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 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/ram108-typo/plugin.php:89

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

ram108-typo/plugin.php 85% from 13 tests

"Web Typography Standards" version 0.6.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ram108-typo.php" instead of "plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 252 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,653 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34077052,589
Bourne Shell1194644
Markdown118020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity20.50
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods92
▷ Static methods1819.57%
▷ Public methods6166.30%
▷ Protected methods1819.57%
▷ Private methods1314.13%
Functions12
▷ Named functions325.00%
▷ Anonymous functions975.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.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