WordPress plugin Orthotypo scored68%from 54 tests.

About plugin

  • Plugin page: orthotypo-orthoty...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Feb 7, 2018
  • Latest release: Aug 15, 2018
  • Number of updates: 11
  • Update frequency: every 17.3 days
  • Top authors: wpr0ck (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /2,637 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.82MB] [CPU: ▼60.05ms] Passed 4 tests

A check of server-side resources used by Orthotypo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.30 ▼0.32
Dashboard /wp-admin2.13 ▼1.216.10 ▼60.64
Posts /wp-admin/edit.php2.13 ▼1.235.98 ▼50.19
Add New Post /wp-admin/post-new.php2.13 ▼3.765.84 ▼94.49
Media Library /wp-admin/upload.php2.13 ▼1.106.25 ▼34.88
Orthotypo /wp-admin/options-general.php?page=orthotypo2.136.15

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 21 new options
New WordPress options
debug_options-replace_space_by_underscore
rules-number_e
rules-pleasantries_mlle
theysaidso_admin_options
rules-pleasantries_dr
db_upgraded
rules-pleasantries_pr
global-is_init
rules-quotation_marks
rules-number_er
...

Browser metrics Passed 4 tests

An overview of browser requirements for Orthotypo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.27 ▼0.461.95 ▲0.2246.58 ▲2.64
Dashboard /wp-admin2,203 ▲265.70 ▲0.0387.18 ▼18.1738.20 ▼5.98
Posts /wp-admin/edit.php2,108 ▲52.02 ▲0.0239.38 ▼1.2537.73 ▲4.25
Add New Post /wp-admin/post-new.php1,533 ▲423.44 ▲0.14694.16 ▲59.7152.18 ▼7.37
Media Library /wp-admin/upload.php1,408 ▲114.21 ▲0.03105.53 ▲4.9447.83 ▲4.80
Orthotypo /wp-admin/options-general.php?page=orthotypo1,2802.0528.1639.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the orthotypo handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 21 options in the database
    • debug_options-replace_space_by_underscore
    • global-is_init
    • global-filters
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • debug_options-use_red_color
    • rules-number_nd
    • rules-pleasantries_pr
    • rules-percentage
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=orthotypo
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the orthotypo handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=orthotypo
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the orthotypo handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/orthotypo-orthotypographie-automatique/includes/admin/main.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: The official readme.txt might help

orthotypo-orthotypographie-automatique/orthotypo.php 92% from 13 tests

The main PHP script in "Orthotypo" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("orthotypo-orthotypographie-automatique.php" instead of "orthotypo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected515 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7116112430
CSS213861
JavaScript15418
Markdown1606

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity17.00
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin