84% gp-project-contributors

Code Review | GP Project Contributors

WordPress plugin GP Project Contributors scored84%from 54 tests.

About plugin

  • Plugin page: gp-project-contri...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Dec 31, 2015
  • Latest release: Apr 17, 2023
  • Number of updates: 17
  • Update frequency: every 156.7 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,104 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.28ms] Passed 4 tests

A check of server-side resources used by GP Project Contributors
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.50 ▲6.73
Dashboard /wp-admin3.32 ▼0.0347.13 ▼19.70
Posts /wp-admin/edit.php3.38 ▲0.0147.94 ▼3.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0196.98 ▼11.12
Media Library /wp-admin/upload.php3.25 ▲0.0143.05 ▲4.72

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

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

Browser metrics Passed 4 tests

GP Project Contributors: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.291.71 ▼0.1044.05 ▼11.49
Dashboard /wp-admin2,198 ▲275.57 ▼0.1086.02 ▼8.2342.97 ▼1.95
Posts /wp-admin/edit.php2,097 ▼61.99 ▲0.0335.24 ▼2.4433.73 ▼4.23
Add New Post /wp-admin/post-new.php1,530 ▲223.18 ▼0.09681.95 ▲35.6647.27 ▼2.70
Media Library /wp-admin/upload.php1,397 ▼64.22 ▲0.0297.05 ▼11.6643.73 ▼4.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 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/gp-project-contributors/gp-project-contributors.php:118

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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
2 plugin tags: translation, glotpress

gp-project-contributors/gp-project-contributors.php Passed 13 tests

The principal PHP file in "GP Project Contributors" v. 1.0 is loaded by WordPress automatically on each request
91 characters long description:
Create a dynamic list of contirbutors to your GlotPress project with a WordPress shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1292175

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin