68% evgeny-muravjev-typograph

Code Review | Plugin Name: Evgeny Muravjev Typograph

WordPress plugin Plugin Name: Evgeny Muravjev Typographscored68%from 54 tests.

About plugin

  • Plugin page: evgeny-muravjev-t...
  • Plugin version: 3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2014
  • Latest release: Dec 24, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: Gadfly_svy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,126 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.96MB] [CPU: ▼39.69ms] Passed 4 tests

Analyzing server-side resources used by Plugin Name: Evgeny Muravjev Typograph
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.14 ▼0.55
Dashboard /wp-admin2.99 ▼0.3520.58 ▼37.20
Posts /wp-admin/edit.php3.00 ▼0.3618.61 ▼29.10
Add New Post /wp-admin/post-new.php2.99 ▼2.8922.42 ▼76.77
Media Library /wp-admin/upload.php3.00 ▼0.2321.12 ▼15.67

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Plugin Name: Evgeny Muravjev Typograph: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.72 ▲0.401.63 ▲0.0538.35 ▼2.73
Dashboard /wp-admin2,202 ▲255.62 ▼0.0386.32 ▲0.4936.63 ▼3.29
Posts /wp-admin/edit.php2,107 ▲71.96 ▼0.0440.46 ▲5.3537.15 ▼1.39
Add New Post /wp-admin/post-new.php1,540 ▲1218.12 ▼5.06617.17 ▼77.6161.71 ▲5.90
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.0296.34 ▼9.7041.26 ▼4.30
Muravjev Typograph /wp-admin/wp_muravjev_typograph.php260.420.1011.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/evgeny-muravjev-typograph/wp_muravjev_typograph.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/wp_muravjev_typograph.php
    • > Network (severe)
    wp-admin/wp_muravjev_typograph.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Plugin Name: Evgeny Muravjev Typograph=== )
The official readme.txt is a good inspiration

evgeny-muravjev-typograph/wp_muravjev_typograph.php 85% from 13 tests

The main PHP file in "Plugin Name: Evgeny Muravjev Typograph" ver. 3.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("evgeny-muravjev-typograph.php" instead of "wp_muravjev_typograph.php")
  • Description: The description should be shorter than 140 characters (currently 338 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,763 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24106172,763

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.06
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods90
▷ Static methods1820.00%
▷ Public methods6066.67%
▷ Protected methods1718.89%
▷ Private methods1314.44%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin