99% phanes-care-initiative

Code Review | Phanes Care Initiative

WordPress plugin Phanes Care Initiative scored 99% from 54 tests.

About plugin

  • Plugin page: phanes-care-initi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7.3
  • WordPress version: 5.8.1
  • First release: Sep 1, 2017
  • Latest release: Sep 1, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: phanesco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 364 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.01MB] [CPU: ▼136.34ms] Passed 4 tests

This is a short check of server-side resources used by Phanes Care Initiative
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1228.99 ▲7.87
Dashboard /wp-admin3.07 ▲0.0245.55 ▲1.43
Posts /wp-admin/edit.php3.12 ▲0.0244.25 ▲0.37
Add New Post /wp-admin/post-new.php5.43 ▲0.0091.56 ▼543.50
Media Library /wp-admin/upload.php3.01 ▲0.0133.16 ▼3.65
Phanes DS /wp-admin/options-general.php?page=phanes-ds2.9825.59

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Phanes Care Initiative
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲8016.26 ▲0.678.69 ▲1.3144.54 ▼0.81
Dashboard /wp-admin2,975 ▲445.86 ▼0.27131.80 ▼10.73107.28 ▼1.81
Posts /wp-admin/edit.php2,744 ▲52.68 ▼0.0167.03 ▲3.5285.50 ▼6.37
Add New Post /wp-admin/post-new.php1,675 ▲318.90 ▲0.20366.88 ▲13.96106.84 ▼2.94
Media Library /wp-admin/upload.php1,809 ▼15.02 ▼0.00153.79 ▲11.59115.37 ▼13.46
Phanes DS /wp-admin/options-general.php?page=phanes-ds1,0412.0556.3478.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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
3 plugin tags: donorschoose, education project, phanes

phanes-care-initiative/phanes-donorschoose.php 69% from 13 tests

Analyzing the main PHP file in "Phanes Care Initiative" version 1.0.0
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/lang")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("phanes-care-initiative.php" instead of "phanes-donorschoose.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected348 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34784171
CSS1270135
JavaScript13342

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods975.00%
▷ Protected methods325.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin