84% wp-to-pdd

Code Review | WP to PDD

WordPress plugin WP to PDD scored84%from 54 tests.

About plugin

  • Plugin page: wp-to-pdd
  • Plugin version: 0.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Jan 29, 2016
  • Latest release: Mar 7, 2016
  • Number of updates: 24
  • Update frequency: every 1.7 days
  • Top authors: dampi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,037 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.23MB] [CPU: ▼18.22ms] Passed 4 tests

This is a short check of server-side resources used by WP to PDD
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.40 ▼1.53
Dashboard /wp-admin3.07 ▼0.2429.62 ▼20.75
Posts /wp-admin/edit.php3.20 ▼0.1534.32 ▼18.11
Add New Post /wp-admin/post-new.php5.44 ▼0.4473.36 ▼27.03
Media Library /wp-admin/upload.php3.14 ▼0.0930.29 ▼6.97

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 11 new options
New WordPress options
pdd_create_boxes
pdd_domain
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
pdd_pdd_token
db_upgraded
can_compress_scripts
pdd_domain_added
...

Browser metrics Passed 4 tests

A check of browser resources used by WP to PDD
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.37 ▲0.191.86 ▼0.1041.90 ▼4.39
Dashboard /wp-admin2,214 ▲475.64 ▼0.0590.44 ▼14.8236.52 ▼13.30
Posts /wp-admin/edit.php2,119 ▲192.03 ▲0.0339.78 ▼2.9335.37 ▲0.87
Add New Post /wp-admin/post-new.php1,567 ▲1318.55 ▲0.15661.68 ▲29.9950.40 ▼5.53
Media Library /wp-admin/upload.php1,419 ▲194.31 ▲0.0697.31 ▼7.9546.15 ▲0.81

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-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • 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)
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-to-pdd/tmpl/all-boxes-tmpl.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-to-pdd/wp-to-pdd.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-to-pdd/tmpl/connect-tmpl.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-to-pdd/tmpl/settings-tmpl.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: mail, yandex

wp-to-pdd/wp-to-pdd.php 92% from 13 tests

The main PHP file in "WP to PDD" ver. 0.9.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 230 characters long)

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
There were no executable files found in this plugin1,309 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5658656
JavaScript246102521
CSS2240132

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png23.44KB10.31KB▼ 56.00%
screenshot-7.png23.77KB10.21KB▼ 57.03%
screenshot-1.png63.58KB28.51KB▼ 55.16%
screenshot-4.png23.90KB10.73KB▼ 55.09%
screenshot-5.png23.60KB10.59KB▼ 55.13%