84% booklaunch

Code Review | Booklaunch.io for Wordpress

WordPress plugin Booklaunch.io for Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: booklaunch
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.5
  • WordPress version: 6.3.1
  • First release: Jan 6, 2015
  • Latest release: Jun 7, 2017
  • Number of updates: 23
  • Update frequency: every 38.7 days
  • Top authors: garrettboatman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Server-side resources used by Booklaunch.io for Wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.81 ▲3.70
Dashboard /wp-admin3.31 ▲0.0154.36 ▼0.44
Posts /wp-admin/edit.php3.37 ▲0.0151.51 ▼4.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.31 ▼26.98
Media Library /wp-admin/upload.php3.24 ▲0.0141.17 ▲2.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Booklaunch.io for Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.78 ▲0.491.86 ▲0.2144.22 ▲3.51
Dashboard /wp-admin2,200 ▲205.64 ▼0.0295.15 ▲3.9442.13 ▼4.15
Posts /wp-admin/edit.php2,102 ▲22.00 ▼0.0335.47 ▼0.2234.11 ▼4.26
Add New Post /wp-admin/post-new.php1,530 ▲423.39 ▼0.11689.52 ▲62.4753.72 ▼0.85
Media Library /wp-admin/upload.php1,399 ▼14.19 ▼0.01113.88 ▲5.1749.51 ▲3.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/booklaunch/page-booklaunch.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booklaunch/booklaunch.php:136

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: booklaunch

booklaunch/booklaunch.php Passed 13 tests

The main file in "Booklaunch.io for Wordpress" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
91 characters long description:
A plugin that integrates your Booklaunch page as a page template on your Wordpress website.

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
Everything looks great! No dangerous files found in this plugin131 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26544123
JavaScript1008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions5
▷ Named functions5100.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
No PNG files were detected