78% publitio

Code Review | Publitio

WordPress plugin Publitio scored78%from 54 tests.

About plugin

  • Plugin page: publitio
  • Plugin version: 2.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: Jun 26, 2023
  • Number of updates: 31
  • Update frequency: every 56.4 days
  • Top authors: publitio (100%)

Code review

54 tests

User reviews

40 reviews

Install metrics

800+ active /14,636 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.14MB] [CPU: ▼2.43ms] Passed 4 tests

Server-side resources used by Publitio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1245.76 ▲3.22
Dashboard /wp-admin3.52 ▲0.1853.30 ▲0.80
Posts /wp-admin/edit.php3.58 ▲0.1848.17 ▼4.60
Add New Post /wp-admin/post-new.php6.06 ▲0.1389.22 ▼8.13
Media Library /wp-admin/upload.php3.38 ▲0.1141.90 ▲2.20

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Publitio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲17813.87 ▼0.6610.76 ▲9.2242.40 ▼1.85
Dashboard /wp-admin2,204 ▲305.67 ▲0.13100.95 ▲6.1879.17 ▲29.03
Posts /wp-admin/edit.php2,124 ▲242.01 ▲0.0338.47 ▲0.0632.17 ▼4.65
Add New Post /wp-admin/post-new.php6,217 ▲4,69118.96 ▼4.36919.89 ▲217.1141.63 ▼22.73
Media Library /wp-admin/upload.php1,427 ▲244.25 ▲0.01105.07 ▼2.9473.96 ▲25.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/publitio/admin/partials/publitio-admin-display.php
    • > /wp-content/plugins/publitio/public/partials/publitio-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/publitio/admin/partials/publitio-media-button.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/publitio/admin/partials/publitio-settings-page.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
  • Screenshots: These screenshots lack descriptions #5, #6, #7 in publitio/assets to your readme.txt
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === publitio === )
Please take inspiration from this readme.txt

publitio/publitio.php Passed 13 tests

The principal PHP file in "Publitio" v. 2.1.6 is loaded by WordPress automatically on each request
51 characters long description:
Simple Image & Video Asset Management in the cloud.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected983 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP19214654601
JavaScript55784260
CSS416867
Sass311249
Markdown1606

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.70
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods55
▷ Static methods712.73%
▷ Public methods4785.45%
▷ Protected methods00.00%
▷ Private methods814.55%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants9
▷ Global constants9100.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
4 PNG files occupy 0.29MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png93.52KB39.02KB▼ 58.28%
assets/screenshot-2.png40.33KB18.83KB▼ 53.30%
assets/screenshot-3.png165.01KB62.39KB▼ 62.19%
admin/images/cloud-icon.png0.36KB0.38KB0.00%