89% polmo-lite-demo-importer

Code Review | Polmo Lite Demo Importer

WordPress plugin Polmo Lite Demo Importer scored89%from 54 tests.

About plugin

  • Plugin page: polmo-lite-demo-i...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Oct 21, 2020
  • Latest release: Nov 26, 2020
  • Number of updates: 4
  • Update frequency: every 9.3 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /586 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Polmo Lite Demo Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.98 ▼2.92
Dashboard /wp-admin3.32 ▲0.0246.75 ▲1.44
Posts /wp-admin/edit.php3.37 ▲0.0148.40 ▼0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.29 ▼11.82
Media Library /wp-admin/upload.php3.24 ▲0.0135.59 ▲2.96

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Polmo Lite Demo Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.75 ▲0.162.29 ▼0.4248.14 ▼4.57
Dashboard /wp-admin2,209 ▲215.88 ▲1.00102.09 ▲2.2342.20 ▼2.62
Posts /wp-admin/edit.php2,089 ▼02.16 ▲0.1936.64 ▼6.6432.42 ▼1.84
Add New Post /wp-admin/post-new.php1,528 ▼118.55 ▲0.41583.85 ▼44.7064.81 ▲9.16
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.1595.95 ▼6.8641.89 ▼5.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: demo content

polmo-lite-demo-importer/polmo-lite-demo-importer.php 85% from 13 tests

The main PHP script in "Polmo Lite Demo Importer" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected6,913 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
XML145426,844
PHP2323769

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 1.29MB with 0.77MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
demo-content/previews/business-hero-thumb.png431.02KB152.68KB▼ 64.58%
demo-content/previews/agency-hero-thumb.png894.03KB410.27KB▼ 54.11%