83% tutsup-epub-creator-free

Code Review | Tutsup Epub Creator Free

WordPress plugin Tutsup Epub Creator Free scored 83% from 54 tests.

About plugin

  • Plugin page: tutsup-epub-creat...
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0
  • WordPress version: 6.3.1
  • First release: Oct 25, 2014
  • Latest release: Oct 25, 2014
  • Number of updates: 18
  • Update frequency: every 0.1 days
  • Top authors: todoespacoonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,527 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲1.22ms] Passed 4 tests

An overview of server-side resources used by Tutsup Epub Creator Free
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.27 ▲3.08
Dashboard /wp-admin3.35 ▲0.0548.44 ▼0.09
Posts /wp-admin/edit.php3.41 ▲0.0549.36 ▲1.16
Add New Post /wp-admin/post-new.php5.95 ▲0.06104.49 ▲13.12
Media Library /wp-admin/upload.php3.27 ▲0.0536.28 ▲0.74
Epub Creator /wp-admin/edit.php?page=tutsup-epub-creator3.2634.15

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Tutsup Epub Creator Free: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲12213.40 ▼0.844.68 ▲2.8443.96 ▼11.31
Dashboard /wp-admin2,241 ▲565.09 ▼0.72106.37 ▼0.1343.04 ▲4.03
Posts /wp-admin/edit.php2,139 ▲472.49 ▲0.4839.67 ▲2.2853.51 ▲21.41
Add New Post /wp-admin/post-new.php1,542 ▲2823.53 ▲5.89611.15 ▼81.3432.35 ▼49.15
Media Library /wp-admin/upload.php1,430 ▲424.58 ▲0.4399.73 ▼5.8943.18 ▼0.16
Epub Creator /wp-admin/edit.php?page=tutsup-epub-creator9582.2332.1641.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
Everything seems fine, however 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 fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_theme_textdomain() in wp-content/plugins/tutsup-epub-creator-free/tutsup-epub-creator.php:38
    • > PHP Warning
      getimagesize(images/3.jpg): failed to open stream: No such file or directory in wp-content/plugins/tutsup-epub-creator-free/php-epub-creator/classes/TPEpubCreator.php on line 384
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/tutsup-epub-creator-free/php-epub-creator/classes/TPEpubCreator.php on line 385
    • > PHP Notice
      Array to string conversion in wp-content/plugins/tutsup-epub-creator-free/php-epub-creator/classes/TPEpubCreator.php on line 390

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: epub, e-book

tutsup-epub-creator-free/tutsup-epub-creator.php 77% from 13 tests

The main PHP script in "Tutsup Epub Creator Free" version 0.0.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tutsup-epub-creator-free.php" instead of "tutsup-epub-creator.php")
  • Description: The description should be shorter than 140 characters (currently 344 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,381 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS3130101620
PHP4226424593
JavaScript12414102
PO File119066

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity31.00
▷ Minimum class complexity26.00
▷ Maximum class complexity36.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods1458.33%
▷ Protected methods00.00%
▷ Private methods1041.67%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%