84% twentyfifteen-noto-sans-jp

Code Review | Twentyfifteen Noto Sans JP

WordPress plugin Twentyfifteen Noto Sans JP scored84%from 54 tests.

About plugin

  • Plugin page: twentyfifteen-not...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Oct 12, 2015
  • Latest release: Feb 13, 2017
  • Number of updates: 15
  • Update frequency: every 32.7 days
  • Top authors: hnle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,612 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Twentyfifteen Noto Sans JP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.06 ▲1.94
Dashboard /wp-admin3.33 ▲0.0347.69 ▼5.56
Posts /wp-admin/edit.php3.38 ▲0.0250.23 ▼1.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.79 ▼13.74
Media Library /wp-admin/upload.php3.25 ▲0.0239.16 ▼0.32

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Twentyfifteen Noto Sans JP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.101.74 ▼0.1543.54 ▼2.82
Dashboard /wp-admin2,195 ▲155.59 ▼0.1087.20 ▼10.8739.86 ▼2.83
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0035.14 ▼4.5835.12 ▼2.98
Add New Post /wp-admin/post-new.php1,547 ▲723.16 ▼0.03733.89 ▲65.7959.30 ▲1.81
Media Library /wp-admin/upload.php1,400 ▼04.15 ▲0.01114.38 ▼3.6346.98 ▼1.22

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
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/twentyfifteen-noto-sans-jp/admin/editor-style-gen.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: font, twentyfifteen, japanese, google fonts, noto sans

twentyfifteen-noto-sans-jp/2015-notosans-ja.php 92% from 13 tests

The main file in "Twentyfifteen Noto Sans JP" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("twentyfifteen-noto-sans-jp.php" instead of "2015-notosans-ja.php")

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
Everything looks great! No dangerous files found in this plugin462 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP44549269
CSS129140
PO File1111341
JavaScript11012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin