84% certifica-wp

Code Review | Certifica WP

WordPress plugin Certifica WP scored84%from 54 tests.

About plugin

  • Plugin page: certifica-wp
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 7, 2016
  • Latest release: Mar 1, 2018
  • Number of updates: 29
  • Update frequency: every 23.9 days
  • Top authors: moreirapontocom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,326 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.53ms] Passed 4 tests

This is a short check of server-side resources used by Certifica WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.77 ▲0.68
Dashboard /wp-admin3.32 ▲0.0149.17 ▼7.18
Posts /wp-admin/edit.php3.37 ▲0.0148.34 ▼0.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.94 ▼14.14
Media Library /wp-admin/upload.php3.25 ▲0.0133.77 ▼4.08

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Certifica WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.091.87 ▲0.0443.53 ▲2.94
Dashboard /wp-admin2,198 ▲245.59 ▲0.0688.45 ▼4.3339.62 ▼5.36
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0537.13 ▼0.4632.68 ▼3.30
Add New Post /wp-admin/post-new.php1,535 ▲918.46 ▼4.48615.45 ▼61.0382.38 ▲31.98
Media Library /wp-admin/upload.php1,394 ▼94.24 ▲0.13100.33 ▼16.0045.13 ▼1.75

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/certifica-wp/certificawp.php:82
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/certifica-wp/options.php:31

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 93% 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:
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

certifica-wp/certificawp.php 92% from 13 tests

The main PHP script in "Certifica WP" version 3.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("certifica-wp.php" instead of "certificawp.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 detected221 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1152123
PHP225898

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.84
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%
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
PNG images were not found in this plugin