78% native-wp-excerpt

Code Review | Native WP Excerpt

WordPress plugin Native WP Excerpt scored78%from 54 tests.

About plugin

  • Plugin page: native-wp-excerpt
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 11, 2017
  • Latest release: Jun 11, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Komarovski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /947 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.30MB] [CPU: ▼15.46ms] Passed 4 tests

An overview of server-side resources used by Native WP Excerpt
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0131.45 ▼5.98
Dashboard /wp-admin3.34 ▲0.0345.26 ▼1.86
Posts /wp-admin/edit.php3.39 ▲0.0349.45 ▲5.14
Add New Post /wp-admin/post-new.php4.63 ▼1.2641.44 ▼55.04
Media Library /wp-admin/upload.php3.26 ▲0.0334.26 ▲1.04
Native WP Excerpt /wp-admin/options-general.php?page=native-wp-excerpt3.2030.45

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Native WP Excerpt
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.29 ▼1.341.63 ▼0.0341.02 ▲1.10
Dashboard /wp-admin2,210 ▲184.87 ▼0.0897.47 ▼7.1939.23 ▲1.15
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0039.17 ▲2.5233.63 ▼1.42
Add New Post /wp-admin/post-new.php1,517 ▼1817.60 ▼5.53685.35 ▲56.3254.74 ▲6.84
Media Library /wp-admin/upload.php1,389 ▲14.29 ▲0.11101.66 ▲2.2244.46 ▲2.44
Native WP Excerpt /wp-admin/options-general.php?page=native-wp-excerpt8992.0422.7026.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=native-wp-excerpt
    • > Notice in wp-content/plugins/native-wp-excerpt/native-wp-excerpt.php+103
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/native-wp-excerpt/native-wp-excerpt.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt is a good inspiration

native-wp-excerpt/native-wp-excerpt.php 92% from 13 tests

The main PHP script in "Native WP Excerpt" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 261 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin198 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File23650100
PHP102198

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin