84% qokka-proof

Code Review | Credible

WordPress plugin Credible scored 84% from 54 tests.

About plugin

  • Plugin page: qokka-proof
  • Plugin version: 0.1.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 7, 2020
  • Latest release: Dec 12, 2020
  • Number of updates: 29
  • Update frequency: every 9.7 days
  • Top authors: aaronqli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,260 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.34ms] Passed 4 tests

This is a short check of server-side resources used by Credible
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.36 ▲1.22
Dashboard /wp-admin3.35 ▲0.0445.70 ▼5.68
Posts /wp-admin/edit.php3.40 ▲0.0450.37 ▲0.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0498.45 ▼1.43
Media Library /wp-admin/upload.php3.27 ▲0.0436.97 ▲3.72

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Credible
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲12513.29 ▼1.492.40 ▲0.5737.52 ▼7.21
Dashboard /wp-admin2,226 ▲385.85 ▲0.93111.50 ▲4.2670.88 ▲29.09
Posts /wp-admin/edit.php2,112 ▲232.11 ▲0.1339.05 ▼1.2435.68 ▲0.47
Add New Post /wp-admin/post-new.php1,698 ▲17824.47 ▲1.29688.17 ▲31.3758.80 ▼3.91
Media Library /wp-admin/upload.php1,411 ▲234.14 ▼0.0899.37 ▲2.7146.05 ▲3.13

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qokka-proof/hello.php:353

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were not plugin tags detected

qokka-proof/hello.php 85% from 13 tests

"Credible" version 0.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("qokka-proof.php" instead of "hello.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 558 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected436 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12014330
Sass111050
CSS18145
JavaScript10011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
favicon.png6.91KB2.61KB▼ 62.20%
favicon-small.png1.86KB0.93KB▼ 50.03%