84% postaga

Code Review | Postaga

WordPress plugin Postaga scored84%from 54 tests.

About plugin

  • Plugin page: postaga
  • Plugin version: 0.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 27, 2019
  • Latest release: Dec 27, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: offsprout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼11.28ms] Passed 4 tests

This is a short check of server-side resources used by Postaga
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.17 ▼2.28
Dashboard /wp-admin3.31 ▼0.0445.15 ▼13.68
Posts /wp-admin/edit.php3.36 ▲0.0047.99 ▲3.02
Add New Post /wp-admin/post-new.php5.84 ▼0.0578.42 ▼29.65
Media Library /wp-admin/upload.php3.23 ▲0.0037.13 ▲0.48

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

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

Browser metrics Passed 4 tests

Postaga: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.29 ▼0.081.60 ▼0.0140.56 ▼2.28
Dashboard /wp-admin2,198 ▲215.58 ▼0.0887.04 ▼6.1437.66 ▼5.09
Posts /wp-admin/edit.php2,097 ▼62.07 ▲0.1236.29 ▼0.9431.09 ▼4.26
Add New Post /wp-admin/post-new.php1,538 ▲322.51 ▲4.30617.11 ▼31.7573.36 ▲12.25
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.05100.38 ▼9.8341.13 ▼2.35

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/postaga/postaga.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: seo, outreach, link building, promotion, content promotion

postaga/postaga.php 92% from 13 tests

This is the main PHP file of "Postaga" version 0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19181
PHP1135731

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
2 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png227.54KB65.12KB▼ 71.38%
assets/postaga-icon.png1.56KB0.61KB▼ 60.95%