83% agregs-postget

Code Review | Agregs Postget

WordPress plugin Agregs Postget scored83%from 54 tests.

About plugin

  • Plugin page: agregs-postget
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.4
  • WordPress version: 6.3.1
  • First release: Nov 4, 2015
  • Latest release: Nov 26, 2015
  • Number of updates: 6
  • Update frequency: every 7.2 days
  • Top authors: fasgka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.40ms] Passed 4 tests

Server-side resources used by Agregs Postget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.01 ▼2.59
Dashboard /wp-admin3.32 ▲0.0244.88 ▼4.26
Posts /wp-admin/edit.php3.37 ▲0.0144.13 ▼3.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.25 ▼15.15
Media Library /wp-admin/upload.php3.24 ▲0.0133.63 ▲0.95

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Agregs Postget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.35 ▼1.024.07 ▲2.4147.10 ▲5.76
Dashboard /wp-admin2,209 ▲215.78 ▼0.1894.46 ▼21.5538.59 ▼7.29
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0235.33 ▲1.4432.48 ▼2.33
Add New Post /wp-admin/post-new.php1,544 ▲3018.07 ▲0.66600.36 ▼33.3652.60 ▼2.17
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.04100.08 ▲1.7441.68 ▼2.26

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/agregs-postget/agregspostget.php:25

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (`/assets/screenshot-1.jpg`) image required
The official readme.txt is a good inspiration

agregs-postget/agregspostget.php 85% from 13 tests

"Agregs Postget" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 201 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("agregs-postget.php" instead of "agregspostget.php")

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 plugin183 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25677142
PO File1101037
INI1104

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin