83% dotepub

Code Review | dotEPUB, a push-button cloud-based e-book maker

WordPress plugin dotEPUB, a push-button cloud-based e-book maker scored 83% from 54 tests.

About plugin

  • Plugin page: dotepub
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.2
  • WordPress version: 5.8.1
  • First release: Mar 11, 2013
  • Latest release: May 2, 2015
  • Number of updates: 12
  • Update frequency: every 65.1 days
  • Top authors: badosa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,286 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by dotEPUB, a push-button cloud-based e-book maker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0137.68 ▼0.48
Dashboard /wp-admin3.07 ▲0.0148.94 ▲0.09
Posts /wp-admin/edit.php3.12 ▲0.0151.46 ▲2.78
Add New Post /wp-admin/post-new.php5.43 ▼0.0197.06 ▼564.44
Media Library /wp-admin/upload.php3.01 ▲0.0135.43 ▲0.51
dotEPUB /wp-admin/options-general.php?page=dotEPUB_options2.9634.28

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for dotEPUB, a push-button cloud-based e-book maker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.81 ▲0.1912.19 ▼0.1952.27 ▼2.48
Dashboard /wp-admin2,978 ▲415.86 ▼0.13146.03 ▼15.93129.07 ▲10.23
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0167.93 ▼6.03106.51 ▲10.40
Add New Post /wp-admin/post-new.php1,686 ▲9218.69 ▲0.19390.36 ▼9.21123.65 ▲10.20
Media Library /wp-admin/upload.php1,812 ▲25.03 ▼0.01161.06 ▼5.53124.68 ▲0.74
dotEPUB /wp-admin/options-general.php?page=dotEPUB_options1,1642.1266.1494.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=dotEPUB_options
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=dotEPUB_options
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=dotEPUB_options
    • > Warning in wp-content/plugins/dotepub/dotepub.php+89
    Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)

SRP 0% 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dotepub/uninstall.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dotepub/dotepub.php:219

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

dotepub/dotepub.php Passed 13 tests

The entry point to "dotEPUB, a push-button cloud-based e-book maker" version 1.1 is a PHP file that has certain tags in its header comment area
107 characters long description:
Allows your users to download your blog posts in e-book form for standard EPUB e-readers and Amazon Kindle.

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
There were no executable files found in this plugin397 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP33124181
PO File26260181
CSS10035

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions16
▷ Named functions16100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
i/but62x20.png1.20KB1.19KB▼ 0.65%
i/bg.png0.22KB0.19KB▼ 13.12%