79% certificate-verification

Code Review | Certificate Verification

WordPress plugin Certificate Verification scored79%from 54 tests.

About plugin

  • Plugin page: certificate-verif...
  • Plugin version: 2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: May 17, 2020
  • Latest release: Jun 8, 2020
  • Number of updates: 7
  • Update frequency: every 3.9 days
  • Top authors: segwitz (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /8,975 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.04ms] Passed 4 tests

Server-side resources used by Certificate Verification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.81 ▼3.16
Dashboard /wp-admin3.37 ▲0.0347.35 ▼13.32
Posts /wp-admin/edit.php3.42 ▲0.0744.40 ▼4.28
Add New Post /wp-admin/post-new.php5.97 ▲0.0981.45 ▼15.40
Media Library /wp-admin/upload.php3.30 ▲0.0737.22 ▲5.48

Server storage [IO: ▲0.81MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: 1 new table, 6 new options
New tables
segwitz_course_certificates
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Certificate Verification
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7813.46 ▼0.921.87 ▼0.2144.12 ▼2.19
Dashboard /wp-admin2,227 ▲395.12 ▲0.22105.39 ▼11.4735.29 ▼8.11
Posts /wp-admin/edit.php2,107 ▲182.45 ▲0.4335.74 ▲1.9135.16 ▲1.22
Add New Post /wp-admin/post-new.php1,685 ▲15222.90 ▼0.32658.55 ▼37.1442.67 ▼15.75
Media Library /wp-admin/upload.php1,406 ▲244.39 ▲0.2098.19 ▼1.7342.60 ▼0.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • segwitz_course_certificates
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

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 on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("#")
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot shows the menu where users can enter the details of the certificate.), #2 (This screenshot shows the list of all certificate data entered.), #3 (This screenshot shows the front-end design on how it will appear for your visitors to check a certificate No.)
The official readme.txt might help

certificate-verification/course-certificate-verification.php 85% from 13 tests

The principal PHP file in "Certificate Verification" v. 2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("certificate-verification.php" instead of "course-certificate-verification.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,833 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,9796,9976,331
CSS445841,699
PHP73743803

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
assets/images/ui-icons_ffffff_256x240.png6.17KB4.18KB▼ 32.17%
assets/images/ui-icons_777777_256x240.png6.85KB4.18KB▼ 38.94%
assets/images/ui-icons_777620_256x240.png4.57KB4.18KB▼ 8.43%
assets/images/ui-icons_cc0000_256x240.png4.52KB4.18KB▼ 7.56%