94% about-coders

Code Review | About Coder

WordPress plugin About Coder scored 94% from 54 tests.

About plugin

  • Plugin page: about-coders
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.4
  • WordPress version: 5.8.1
  • First release: Dec 12, 2019
  • Latest release: Mar 19, 2020
  • Number of updates: 6
  • Update frequency: every 19.7 days
  • Top authors: romainguillaume (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 244 total downloads

Benchmarks

Plugin footprint Passed 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.20MB] [CPU: ▼159.59ms] Passed 4 tests

A check of server-side resources used by About Coder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1434.41 ▲9.25
Dashboard /wp-admin2.86 ▼0.1924.62 ▼21.92
Posts /wp-admin/edit.php2.98 ▼0.1228.99 ▼18.56
Add New Post /wp-admin/post-new.php4.99 ▼0.4471.62 ▼586.93
Media Library /wp-admin/upload.php2.95 ▼0.0524.31 ▼10.96

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for About Coder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲21215.98 ▲0.3311.66 ▼3.6547.68 ▼2.38
Dashboard /wp-admin3,087 ▲1566.00 ▼0.18157.43 ▲3.42115.39 ▲10.49
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0072.77 ▲3.3289.43 ▼2.68
Add New Post /wp-admin/post-new.php1,509 ▼7218.49 ▲0.02376.88 ▼33.53108.11 ▼2.50
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.00156.29 ▼2.40110.82 ▼4.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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
  • 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/about-coders/about-coders.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 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
4 plugin tags: source, developper, code, bytes

about-coders/about-coders.php 85% from 13 tests

"About Coder" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin98 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP163884
JavaScript10114

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin