84% ppp-subtitles

Code Review | Post Promoter Pro - Subtitles

WordPress plugin Post Promoter Pro - Subtitles scored84%from 54 tests.

About plugin

  • Plugin page: ppp-subtitles
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Oct 3, 2014
  • Latest release: Oct 3, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: cklosows (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /717 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by Post Promoter Pro - Subtitles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.71 ▲0.68
Dashboard /wp-admin3.32 ▲0.0243.80 ▼7.77
Posts /wp-admin/edit.php3.37 ▲0.0147.70 ▲1.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.90 ▼10.57
Media Library /wp-admin/upload.php3.25 ▲0.0133.66 ▼1.73

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Promoter Pro - Subtitles
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.161.77 ▼0.0444.26 ▲0.79
Dashboard /wp-admin2,209 ▲214.84 ▼0.08101.89 ▼16.9639.83 ▼8.29
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0038.54 ▲2.4036.28 ▼1.97
Add New Post /wp-admin/post-new.php1,533 ▲1123.46 ▲0.27677.07 ▲18.3758.30 ▼4.68
Media Library /wp-admin/upload.php1,391 ▼04.23 ▼0.02101.15 ▲0.0742.45 ▼5.17

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ppp-subtitles/ppp-subtitles.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: linkedin, post promoter pro, subtitles, twitter

ppp-subtitles/ppp-subtitles.php Passed 13 tests

The main PHP script in "Post Promoter Pro - Subtitles" version 1.0 is automatically included on every request by WordPress
54 characters long description:
Integrates Post Promoter Pro with the Subtitles Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1203528

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin