84% wp-grande-vitorinha

Code Review | WP Grande Vitorinha

WordPress plugin WP Grande Vitorinha scored 84% from 54 tests.

About plugin

  • Plugin page: wp-grande-vitorinha
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Jun 27, 2017
  • Latest release: Oct 25, 2018
  • Number of updates: 7
  • Update frequency: every 69.3 days
  • Top authors: Rahmohn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 942 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼4.44ms] Passed 4 tests

This is a short check of server-side resources used by WP Grande Vitorinha
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.42 ▼5.01
Dashboard /wp-admin3.31 ▲0.0145.70 ▼0.93
Posts /wp-admin/edit.php3.36 ▲0.0050.43 ▼1.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.47 ▼10.00
Media Library /wp-admin/upload.php3.23 ▲0.0035.52 ▲2.86

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Grande Vitorinha
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.26 ▼1.301.66 ▼0.1039.68 ▼13.38
Dashboard /wp-admin2,203 ▲155.83 ▼0.07141.98 ▲43.3755.71 ▲12.33
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0540.72 ▼0.1634.23 ▼2.71
Add New Post /wp-admin/post-new.php1,533 ▲1023.26 ▼0.06659.34 ▲30.5256.75 ▼12.84
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.0193.35 ▼9.1741.06 ▼2.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-grande-vitorinha/public/partials/wp-grande-vitorinha-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: grande vitorinha, vitria, vitorinha, es, font...

wp-grande-vitorinha/wp-grande-vitorinha.php Passed 13 tests

This is the main PHP file of "WP Grande Vitorinha" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Use easily the font "Grande Vitorinha" in your website.

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
Good job! No executable or dangerous file extensions detected276 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG100135
PHP886350130
CSS11011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1477.78%
▷ Protected methods00.00%
▷ Private methods422.22%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected