90% polyglots

Code Review | Polyglots

WordPress plugin Polyglots scored90%from 54 tests.

About plugin

  • Plugin page: polyglots
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.3
  • WordPress version: 6.3.1
  • First release: Sep 14, 2015
  • Latest release: Sep 14, 2015
  • Number of updates: 4
  • Update frequency: every 13.8 days
  • Top authors: markoheijnen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Polyglots
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.87 ▼5.18
Dashboard /wp-admin3.73 ▲0.391,247.19 ▲1,177.75
Posts /wp-admin/edit.php3.36 ▲0.0051.24 ▲2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.40 ▼6.60
Media Library /wp-admin/upload.php3.23 ▲0.0038.17 ▼0.01

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Polyglots
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.73 ▲0.362.04 ▲0.2843.52 ▲1.70
Dashboard /wp-admin2,236 ▲565.57 ▼0.1396.20 ▼2.3538.39 ▼3.26
Posts /wp-admin/edit.php2,099 ▼42.05 ▲0.0833.87 ▼3.4235.18 ▲0.71
Add New Post /wp-admin/post-new.php1,542 ▲1623.32 ▲5.80586.35 ▼107.0353.91 ▼1.09
Media Library /wp-admin/upload.php1,402 ▲24.23 ▲0.0296.04 ▼16.9646.14 ▲0.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: i18n, admin, polyglots

polyglots/polyglots.php 92% from 13 tests

Analyzing the main PHP file in "Polyglots" version 0.1
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,216 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8350852,183
CSS18025
Markdown1308

PHP code Passed 2 tests

Analyzing 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.03
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes00.00%
Methods41
▷ Static methods1434.15%
▷ Public methods3892.68%
▷ Protected methods00.00%
▷ Private methods37.32%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
No PNG images were found in this plugin