94% pootle-cloud

Code Review | Pootle cloud

WordPress plugin Pootle cloud scored 94% from 53 tests.

About plugin

  • Plugin page: pootle-cloud
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.3.0
  • WordPress version: 5.8.1
  • First release: Sep 21, 2017
  • Latest release: Nov 11, 2019
  • Number of updates: 7
  • Update frequency: every 115.6 days
  • Top authors: shramee (57.14%)PootlePress (57.14%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 1,508 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Pootle cloud
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.91 ▲13.71
Dashboard /wp-admin3.06 ▲0.0042.59 ▲1.74
Posts /wp-admin/edit.php3.11 ▲0.0142.26 ▼7.52
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.21 ▼2,758.97
Media Library /wp-admin/upload.php3.00 ▼0.0025.54 ▼12.09

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Pootle cloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,687 ▲18115.85 ▲2.277.52 ▲0.0747.34 ▲3.58
Dashboard /wp-admin2,947 ▲905.95 ▲0.13138.11 ▼3.98102.58 ▼4.32
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0063.59 ▼4.8987.89 ▼9.96
Add New Post /wp-admin/post-new.php1,851 ▼218.74 ▼0.27354.48 ▲14.45113.09 ▲4.01
Media Library /wp-admin/upload.php1,775 ▲34.99 ▼0.02146.50 ▼7.36107.55 ▼6.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pootle-cloud/pootle-cloud.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Applying templates), #2 (Pootle design templates), #3 (Community contributed design templates), #4 (My design templates), #5 (Saving Design templates), #6 (Logging into Pootle Cloud), #7 (Managing Design templates)
The official readme.txt is a good inspiration

pootle-cloud/pootle-cloud.php Passed 13 tests

"Pootle cloud" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
16 characters long description:
A happy place :)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin417 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2618203
PHP13169115
CSS118699

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin