78% gravitation-teams

Code Review | Gravitation Teams

WordPress plugin Gravitation Teams scored 78% from 54 tests.

About plugin

  • Plugin page: gravitation-teams
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Dec 20, 2015
  • Latest release: Dec 22, 2015
  • Number of updates: 9
  • Update frequency: every 39.3 days
  • Top authors: UlisesFreitas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 690 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.86ms] Passed 4 tests

A check of server-side resources used by Gravitation Teams
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.67 ▼0.75
Dashboard /wp-admin3.41 ▲0.1145.81 ▼5.21
Posts /wp-admin/edit.php3.53 ▲0.1748.24 ▼1.78
Add New Post /wp-admin/post-new.php5.99 ▲0.1193.67 ▲4.66
Media Library /wp-admin/upload.php3.33 ▲0.1140.38 ▲4.29
All teams /wp-admin/edit.php?post_type=gv_teams3.3839.52
Add New /wp-admin/post-new.php?post_type=gv_teams3.4548.15

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Gravitation Teams
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.38 ▼0.995.34 ▲3.5242.99 ▼6.02
Dashboard /wp-admin2,237 ▲495.90 ▲0.0095.61 ▼18.0639.49 ▼9.48
Posts /wp-admin/edit.php2,123 ▲342.01 ▼0.0343.51 ▲7.3736.18 ▲0.19
Add New Post /wp-admin/post-new.php1,560 ▲4623.03 ▼0.51629.29 ▼80.5458.27 ▼2.48
Media Library /wp-admin/upload.php1,422 ▲314.27 ▲0.04102.54 ▼10.0646.96 ▼1.56
All teams /wp-admin/edit.php?post_type=gv_teams1,0991.9435.6330.64
Add New /wp-admin/post-new.php?post_type=gv_teams2,2627.63166.8964.31
Help /wp-admin/gravitation-teams.php260.440.0712.98

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% 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)
Everything seems fine, however 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/gravitation-teams/gravitation-teams.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/gravitation-teams.php
    • > Network (severe)
    wp-admin/gravitation-teams.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-2.png) image not found
Please take inspiration from this readme.txt

gravitation-teams/gravitation-teams.php 92% from 13 tests

The main file in "Gravitation Teams" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Success! There were no dangerous files found in this plugin19,156 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS8186014,698
JavaScript61,0361,0563,391
PO File4153153408
PHP213281371
SVG100288

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.54MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pinterest-32-gray.png0.82KB0.46KB▼ 43.71%
images/pinterest-32-color.png0.82KB0.46KB▼ 44.06%
images/twitter-32-color.png0.70KB0.37KB▼ 47.14%
images/instagram-32-gray.png0.63KB0.36KB▼ 42.08%
images/facebook-32-gray.png0.56KB0.34KB▼ 38.42%