94% full-post-teaser

Code Review | Full Post Teaser

WordPress plugin Full Post Teaser scored 94% from 54 tests.

About plugin

  • Plugin page: full-post-teaser
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 5.8.1
  • First release: May 18, 2019
  • Latest release: May 18, 2019
  • Number of updates: 3
  • Update frequency: every 6.3 days
  • Top authors: makg10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 451 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.07ms] Passed 4 tests

An overview of server-side resources used by Full Post Teaser
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.82 ▲0.1037.96 ▲13.95
Dashboard /wp-admin3.09 ▲0.0337.56 ▼13.59
Posts /wp-admin/edit.php3.17 ▲0.0648.00 ▲12.10
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.74 ▼566.34
Media Library /wp-admin/upload.php3.03 ▲0.0332.24 ▼4.43

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

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

Browser metrics Passed 4 tests

Full Post Teaser: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.88 ▲0.407.04 ▼4.1251.15 ▼5.84
Dashboard /wp-admin2,973 ▲435.92 ▼0.00144.48 ▼19.95120.26 ▼2.26
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0169.00 ▼6.4396.39 ▼0.88
Add New Post /wp-admin/post-new.php1,683 ▼018.75 ▲0.00385.13 ▼15.74116.21 ▼7.21
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.03157.11 ▲2.67121.30 ▼1.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'MakG\\PostTeaser\\VisitStorage\\VisitStorageInterface' not found in wp-content/plugins/full-post-teaser/VisitStorage/SessionVisitStorage.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'MakG\\PostTeaser\\BotDetector\\BotDetectorInterface' not found in wp-content/plugins/full-post-teaser/BotDetector/SearchEngineBotDetector.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'MakG\\PostTeaser\\ContentFilter\\ContentFilterInterface' not found in wp-content/plugins/full-post-teaser/ContentFilter/AppendReadMore.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'MakG\\PostTeaser\\ContentFilter\\ContentFilterInterface' not found in wp-content/plugins/full-post-teaser/ContentFilter/ConditionalFilter.php:13

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === full-post-teaser === )
You can look at the official readme.txt

full-post-teaser/full-post-teaser.php 92% from 13 tests

This is the main PHP file of "Full Post Teaser" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 202 characters long)

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
Everything looks great! No dangerous files found in this plugin186 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File15733

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
▷ Named functions00.00%
▷ Anonymous functions2100.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin