90% tinymce-page-break-button

Code Review | TinyMCE Page Break Button

WordPress plugin TinyMCE Page Break Button scored90%from 54 tests.

About plugin

  • Plugin page: tinymce-page-brea...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0
  • WordPress version: 6.3.1
  • First release: Sep 19, 2014
  • Latest release: Feb 20, 2018
  • Number of updates: 9
  • Update frequency: every 138.9 days
  • Top authors: matthias.s (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /8,638 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: ▼8.08ms] Passed 4 tests

Server-side resources used by TinyMCE Page Break Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.61 ▼2.04
Dashboard /wp-admin3.31 ▲0.0142.87 ▼5.89
Posts /wp-admin/edit.php3.36 ▲0.0145.17 ▼11.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.37 ▼13.28
Media Library /wp-admin/upload.php3.23 ▲0.0032.92 ▼0.24

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for TinyMCE Page Break Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.80 ▲0.561.78 ▲0.0341.42 ▲0.93
Dashboard /wp-admin2,206 ▲214.89 ▼0.92114.20 ▲11.8840.89 ▼4.21
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0239.42 ▼1.5535.17 ▼0.09
Add New Post /wp-admin/post-new.php1,533 ▲523.15 ▲5.05593.41 ▼19.9157.96 ▲8.10
Media Library /wp-admin/upload.php1,391 ▼04.22 ▼0.2096.74 ▼1.7742.00 ▼1.68

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: pagebreak, tinymce, pagination, mce, paged posts...

tinymce-page-break-button/tinymce-page-break-button.php Passed 13 tests

The main PHP script in "TinyMCE Page Break Button" version 1.2.0 is automatically included on every request by WordPress
88 characters long description:
This Plugin adds a Page Break Button to TinyMCE Menu for using the Nextpage-Tag in posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192413

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions1
▷ Named functions1100.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