100% va-excerpt-from-content

Code Review | VA Excerpt From Content

WordPress plugin VA Excerpt From Content scored 100% from 54 tests.

About plugin

  • Plugin page: va-excerpt-from-c...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-4.5.2
  • WordPress version: 5.8.1
  • First release: Jun 9, 2016
  • Latest release: Jun 9, 2016
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: kuck1u (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 812 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼144.94ms] Passed 4 tests

This is a short check of server-side resources used by VA Excerpt From Content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1130.39 ▲8.27
Dashboard /wp-admin3.08 ▲0.0348.61 ▼1.22
Posts /wp-admin/edit.php3.13 ▲0.0349.80 ▲6.86
Add New Post /wp-admin/post-new.php5.44 ▲0.0096.12 ▼591.70
Media Library /wp-admin/upload.php3.02 ▲0.0239.40 ▲6.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for VA Excerpt From Content
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.87 ▲0.267.38 ▼1.5244.95 ▼7.50
Dashboard /wp-admin2,973 ▲366.09 ▲0.16145.12 ▼6.85121.16 ▲13.84
Posts /wp-admin/edit.php2,739 ▼02.80 ▼0.0274.33 ▲3.3197.18 ▲1.62
Add New Post /wp-admin/post-new.php1,683 ▼018.76 ▲0.01396.75 ▼4.90115.87 ▼3.39
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.04155.75 ▼5.33124.22 ▼5.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 successfully, without leaving any zombie files or tables

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 96% from 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
4 plugin tags: content, post, posts, excerpt

va-excerpt-from-content/va-excerpt-from-content.php 92% from 13 tests

This is the main PHP file of "VA Excerpt From Content" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/langs")

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 plugin95 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3269695

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods233.33%
▷ Protected methods350.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected